Link to home
Start Free TrialLog in
Avatar of zandizza
zandizza

asked on

converting Latitude and Longitud received from a GPS to Google earth`s geographic coordenades ?

HI. I am programming a desktop application where I receive data from a GPS.

The problem I want to solve is the following:

I need to convert the Latitude and Longitude data contained in the GPS frame to the correct format that Google earth uses.

I remeber watching somebody doing in in the past and what I remember is that some mathemathical operation was needed to be done.

Any GPS Expert that can help me????


Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

kml file format already is expressed in latitude/longitued, like in this example:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
  <name>New York City</name>
  <description>New York City</description>
  <Point>
    <coordinates>-74.006393,40.714172,0</coordinates>
  </Point>
</Placemark>
</kml>

So , according to this example, NYC is in Latitude 40.71.... degrees North and Longitude 74.006... degrees South.
How is your information currently?
 
ASKER CERTIFIED SOLUTION
Avatar of Molnár István
Molnár István
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zandizza
zandizza

ASKER

Good approach