On Sep 7, 9:48 pm, Jess <[email protected]> wrote: > Right, I understand that Google Maps won't provide elevation (for example) > unless I import that data from another source. My question is this: if I > have a map that uses a KLM file with elevation in SchemaData elements, then > I click on a section of the map, is there a way to get the value of those > SchemaData elements for the section I clicked via the API? > > Or does the API provide a way to get the latitude and longitude that was > clicked via the API?
It does: http://code.google.com/apis/maps/documentation/reference.html#GMap2.click click(overlay:GOverlay, latlng:GLatLng, overlaylatlng:GLatLng) > If so, I could use the latitude and longitude, combined > with the elevation data I have in order to determine the elevation at that > location. Obviously this is a less than ideal situation, because it means I > will need to write code to determine which polygon in my data contains the > latitude and longitude I'm looking for. > > On Mon, Sep 7, 2009 at 6:54 PM, Grok Lobster <[email protected]> wrote: > > > The API does not provide that sort of data. You need to use external > > services, such as > >http://www.geonames.org/export/web-services.html#srtm3 > > and > >http://www.wunderground.com/ > > > On Sep 7, 4:53 pm, grokcode <[email protected]> wrote: > > > Hi all, > > > > I am looking at doing a project where we would import data into google > > > maps, and then need to extract that data based on location. The idea > > > is to import data for elevation, avg. wind speed, etc for different > > > regions. I am new to the API, but it looks to me like this data would > > > be set up as color-coded polygons and SchemaData elements within a KML > > > file. > > > > The problem is that after clicking an a section of the map, I need to > > > extract the elevation and wind speed for that location, and then use > > > those numbers in a web app in order to perform some additional > > > calculations. Is it possible to extract that data? Could someone > > > point me at an example or section of the API that does this? I would > > > prefer to handle this server side (probobly PHP), but client side > > > would work as well. > > > > Thanks in advance for any help! > > > > Jess --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
