ロケーション名を渡すことができるgoogle maps apiはありますか?それはgooglemapsの場所を示す座標を返しますか?良いgoogle.maps geolocation api?
3
A
答えて
0
いいえ、逆ジオロケーションを使用する必要があります。あなたは住所または位置の文字列を送ることができ、それは可能な緯度/経度座標の配列を与えます。これらはGeocoderResultsで、通常は最初のものがあなたが望むものです。あなたが米国を望んでいた場合と同様に、あなたはここで
geocoder.geocode({'address': 'USA' }, function(results, status) {
response($.map(results, function(item) {
var latlng = new google.maps.LatLng(item.geometry.location.lat(), item.geometry.location.lng());
//Do some action with the provided latlng
}));
});
2
を行うことができます。ここThe Google Geocoding API
は、例えば、要求されている。
http://maps.googleapis.com/maps/api/geocode/xml?address=Berlin&sensor=false
あなたは結果をフィルタリングすることができます:geometry/location/lat
とlng
のために
<GeocodeResponse>
<status>OK</status>
<result>
<type>locality</type>
<type>political</type>
<formatted_address>Berlin, Deutschland</formatted_address>
[…]
<geometry>
<location>
<lat>52.5234051</lat>
<lng>13.4113999</lng>
</location>
<location_type>APPROXIMATE</location_type>
<viewport>[…]</viewport>
<bounds>[…]</bounds>
</geometry>
</result>
</GeocodeResponse>
0
マフィアa同じ無料サービスを提供しています。 mappy.comを見て、残りのAPIを検索してください。
関連する問題
- 1. IPによる良いGeolocation API
- 2. google geolocation api issue
- 3. GeoLocation + Google Maps API?
- 4. google api geolocationサンプルセキュリティエラー
- 5. Google Maps Geolocation API non-mobile?
- 6. W3C Geolocation API場所データベース
- 7. http get/postリクエストとgoogle geolocation api
- 8. GoogleマップGeoLocation API - 家族を探す
- 9. Googleマップapi open tab from geolocationからplaceId
- 10. Geolocation WatchPosition
- 11. google.mapsシンボルを反転する方法は?
- 12. Azureモバイルサービスでgoogle.mapsを使用する
- 13. 良いBitTorrentトラッカーAPI?
- 14. Geolocation現在位置APIがIE11.5で動作しないwindows10
- 15. W3C Geolocation APIの正確さはどれくらいですか?
- 16. Google Maps UnityのGeolocation APIキーが正しく動作しない
- 17. Googleマップgeolocation getcurrentposition()
- 18. Google MyMaps Geolocation // GPS
- 19. geolocation using html5
- 20. Geolocation App Google Cloud
- 21. Geolocation distance
- 22. Meteor Android geolocation
- 23. GPS以外のGeoLocation API - Googleとその他(Skyhook/Navizon/Xtify/etc)
- 24. maxmind geolocation apis:Apache対PHP
- 25. 良いAPIを持つWysiwyg
- 26. 良いPHP Rest APIライブラリ
- 27. Catch Geolocation Error - Async Await
- 28. Geolocationアプリケーションが動作しない
- 29. Rails 5クリアランスのGeolocation
- 30. PHP Geolocation/Maths/GoogleMapsクラス?
私は、Google Maps Data APIがもう使用できなくなったことさえ知りませんでした:http://code.google.com/intl/nl/apis/maps/documentation/mapsdata/これらは代替手段を提供しています。 – Harmen