Why is my reverse geocoding not working and displaying?
问题 I have a nearby search map, in every open of this map page, it returns the current position, now When I get the current position by coordinates, I want to reverse geocode it into an address name, the problem is I modified my code from this source: https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/geocoding-reverse with <script> function getPosition() { navigator.geolocation.getCurrentPosition(position => { currentLatLon = [position.coords.latitude,