質問

Im using google maps api to return formatted address for given location, but the result is very basic. I use the code from the Reverse Geocoding example With these coordinates ( 43.850429, 25.952279) return "Русе център, Русе, България". When i just click on the map in google.com/maps show "улица „Църковна независимост“ 9, 7000 Русе България" which is the full address. How to get the full address, this from google maps or from street view? Thanks!

役に立ちましたか?

解決

The infowindow in the example shows the formatted_address for the 2nd result, use the first result:

infowindow.setContent(results[0].formatted_address);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top