On May 1, 4:29 pm, JarredT <[email protected]> wrote: > A more realistic request I would make looks like > this:http://maps.google.com/maps/geo?q=6590%20N.%20Sheridan%20Rd.%20Chicag... > > As you can see it outputs Chicago as the city, but doesn't mention the > neighborhood that address is located in, which is Rogers Park. Any > suggestions on how to get the neighborhood from a request like that?
The third result from a call to the reverse geocoder with the coordinates returned by your geocoder query is "Rodgers Park": http://maps.google.com/maps/geo?q=42.002307,-87.660749&output=xml - <Placemark id="p3"> <address>Rogers Park, Illinois, USA</address> - <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"> - <Country> <CountryNameCode>US</CountryNameCode> <CountryName>USA</CountryName> - <AdministrativeArea> <AdministrativeAreaName>IL</AdministrativeAreaName> <AddressLine>Rogers Park</AddressLine> </AdministrativeArea> </Country> </AddressDetails> - <ExtendedData> <LatLonBox north="42.0230380" south="41.9980460" east="-87.6551558" west="-87.6849581" /> </ExtendedData> - <Point> <coordinates>-87.6660690,42.0090030,0</coordinates> </Point> </Placemark> Depends on how localized your data is. > > Thanks. > > On May 1, 6:13 pm, Andrew Leach <[email protected]> wrote: > > > > > On May 1, 11:57 pm, JarredT <[email protected]> wrote: > > > > I notice that Google Maps has all of the Chicago area neighborhoods as > > > locality names. For example, Roger's > > > Park:http://maps.google.com/?q=Rogers%20Park%20Chicago > > > > Is there a way I can send Google Maps either an address or coordinates > > > and have it return the name of the neighborhood in plain text? > > > Depends what you mean by plain text. > > Seehttp://maps.google.com/maps/geo?q=Rogers%20Park%20Chicago&output=xml > > for example. "Rogers Park" is an <AddressLine> within the > > <AdministrativeArea> of Illinois, so it could be parsed from the > > result. I don't know where Chicago has gone. > > > Andrew- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
