문제

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