getting longitude latitude

288 views
Skip to first unread message

djgang

unread,
Aug 29, 2008, 8:53:43 PM8/29/08
to KML Developer Support - Google Earth Browser Plugin
I want to develop a website using php and postgresql (backend) to
capture the longitude and latitude values in google earth and place
them in the database.
my webpage should be divided into 2 parts. one part contains the
google earth and the other part contains the webpage with few input
fields and then store them to my database.

My question is how do i get the longitude and latitude values from the
google earth webpage to my database?


Please help,

Thanks,
Sashi G

TinyGrasshopper

unread,
Aug 30, 2008, 3:17:08 AM8/30/08
to KML Developer Support - Google Earth Browser Plugin
How do you want to specify what lat/long to copy? Eg: by clicking in
the google earth interface, or by the center of the view or... ?

djgang

unread,
Sep 2, 2008, 3:58:58 PM9/2/08
to KML Developer Support - Google Earth Browser Plugin
By clicking in the google earth interface

TinyGrasshopper

unread,
Sep 2, 2008, 10:59:03 PM9/2/08
to KML Developer Support - Google Earth Browser Plugin
Here's an example page that shows you how to get the coordinates from
a click event on the globe:

http://www.tinyg.com/googlearthtest4.html

Cheers,
Chris

djgang

unread,
Sep 3, 2008, 4:29:41 PM9/3/08
to KML Developer Support - Google Earth Browser Plugin
Hi Chris,

Thanks a lot!!

Can you please tell me how to capture this values and store it into my
database.
are the values stored in Latitude and Longitude variables?
I want a function which captures these values and stores it into my
database.
please help

Thanks,
Sashi G

AlanHale

unread,
Sep 7, 2008, 2:08:06 AM9/7/08
to KML Developer Support - Google Earth Browser Plugin
If you do View>Source on the example page you can see how the Lat/Long
capture is done in the Javascript. I don't know how you would then
save the values to a database.

Alan
Reply all
Reply to author
Forward
0 new messages