Coordinates from a KML file that are not displaying properly in Google Maps
I have a KML file and I am fetching the last coordinates and trying to set it as the center of the Google Map, but the marker is in a completely different location.
Do I need to "convert" KML coordinates to Google map coordinates?
Thank you so much
+3
user1225730
source
to share
1 answer
KML coordinates: x, y (longitude, latitude) whereas Maps uses LatLng (or y, x / latitude, longitude).
Just switch the order of x and y and you should be set.
+6
jlivni
source
to share