Reading Google Earths Memory
Basically all I want to do is be able to point the cursor somehwere in google earth's window and have it tell me the Longitude and Latitude of where I clicked... nothing bad. However, I have no idea where to start! If anyone could be of assistance that would be great.
Re: Reading Google Earths Memory
I think you would have to subclass the part of Google Earth that gives you the longitude & latitude and then get the caption of that.
You'd need extensive use of API so you should maybe post it there.
Good luck!
Re: Reading Google Earths Memory
The window that google earth uses to render in is one piece, the bar isn't seperate from the rest of the window. Atleast that is what I can gather from Spy++. So the only thing I could think of was to try and find the memory offset where the longitude and latitude are stored... but so far no luck.
Re: Reading Google Earths Memory
ooh, seems like its gonna be quite a challenge!
Re: Reading Google Earths Memory
I'm working on a Google Earth app myself at the moment.
I want to do exactly as the OP said, click on the screen and return the lat/long. This is proving to be an impossible task. 3 years on from this original post I'm just wondering if there is someone out there that could shed some light on this!
vb Code:
Dim GEI As ApplicationGE
Dim Camera As CameraInfoGE
Set GEI = CreateObject("GoogleEarth.ApplicationGE")
While (GEI.IsInitialized = 0)
Wend
Set Camera = GEI.GetCamera(0)
MsgBox "Latitude: " & Camera.FocusPointLatitude & " Longitude: " & Camera.FocusPointLongitude
The above function returns the lat/log of the center of the camera location on Google Earth. Any way to call this at a certain point on the Google Earth maps?
I'm using vb6 and Google Earth v4.2.0205.5730.
Thanks guys.