Skip to content Skip to sidebar Skip to footer

Push Lat Lng From Another Function Into Street View Image Api

I'm using the Google Maps JavaScript API and this solution for getting closest points on the map and displaying them. 'pt' value example: 38.5803844,-121.50024189999999 Here is th

Solution 1:

pt is not a string, but an object with properties lat and lng. But if you call alert(pt) it will cast the object as string.

for example

pt.toString() "(37.4418834, -122.14301949999998)"

To get lat/lng just use pt.lat() or pt.lng()

Post a Comment for "Push Lat Lng From Another Function Into Street View Image Api"