I have a program that generates a KML File automatically. However, when Import it into Google maps, it takes me somewhere else.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Google Maps - Evidence File</name>
<description>Cheltenham</description>
<Point>
<coordinates>51°54'51.94116", -2°6'8.12088"</coordinates>
</Point>
</Placemark>
</kml>
I’ve double checked the coordinates. Could someone point me in the right direction?
Coordinates are in wrong format, see http://en.wikipedia.org/wiki/Keyhole_Markup_Language or https://developers.google.com/kml/documentation/kmlreference?hl=fi#coordinates for correct format.
You are using format degrees minutes seconds, should be decimal degrees. And assuming you mean Cheltenham, UK, they need to be in the order longitude,latitude (no spaces). Correct format in KML would be
<coordinates>-2.1022558,51.9144281</coordinates>.