Search code examples
kmlgoogle-maps-api-2

Specific lat lng in KML can't be shown


I am trying to show the following coordinates in kml but it can't be shown correctly with Google Maps:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
  <Placemark>
    <name>Invercargill Rocks!</name>
    <description>Go there and see!</description>
    <Point>
      <coordinates>43.006687,144.391647</coordinates>
    </Point>
  </Placemark>
</kml>

I use the following site to check if the kml works: http://display-kml.appspot.com/

It works with the following coordinates but doesn't work with mine.

  • (works) 168.34693908691406,-46.416322245553296
  • (doesn't work) 43.006687,144.391647

Could you somebody tell me why?


Solution

  • As geocodezip mentioned, the correct order has to be lng and lat.