WebAIM - Web Accessibility In Mind

E-mail List Archives

Fw: Question about textual data in the Google Maps API

for

From: Bryan Garaventa
Date: Oct 30, 2011 7:54PM


In case anyone else has wondered about extracting textual data from the
Google Map API to make maps more accessible, this helps a lot.

----- Original Message -----
From: "Bryan Garaventa" < <EMAIL REMOVED> >
To: < <EMAIL REMOVED> >
Sent: Sunday, October 30, 2011 5:04 PM
Subject: Re: Question about textual data in the Google Maps API


> Yes, that's excellent! I'll try implementing this over the week and see
> how it goes.
> Thanks,
> Bryan
>
> ----- Original Message -----
> From: "T.V. Raman" < <EMAIL REMOVED> >
> To: < <EMAIL REMOVED> >
> Sent: Sunday, October 30, 2011 3:54 PM
> Subject: Question about textual data in the Google Maps API
>
>
>> Apologies for the address not being url-encoded in the earlier
>> example.
>> here is the correct version using curl:
>> curl
>> "http://maps.google.com/maps/api/geocode/json?address=1600+amphitheatre+parkway+mountain+view+CA&;sensor=false"
>>
>>
>>
>> {
>> "results" : [
>> {
>> "address_components" : [
>> {
>> "long_name" : "1600",
>> "short_name" : "1600",
>> "types" : [ "street_number" ]
>> },
>> {
>> "long_name" : "Amphitheatre Pkwy",
>> "short_name" : "Amphitheatre Pkwy",
>> "types" : [ "route" ]
>> },
>> {
>> "long_name" : "Mountain View",
>> "short_name" : "Mountain View",
>> "types" : [ "locality", "political" ]
>> },
>> {
>> "long_name" : "Santa Clara",
>> "short_name" : "Santa Clara",
>> "types" : [ "administrative_area_level_2", "political" ]
>> },
>> {
>> "long_name" : "California",
>> "short_name" : "CA",
>> "types" : [ "administrative_area_level_1", "political" ]
>> },
>> {
>> "long_name" : "United States",
>> "short_name" : "US",
>> "types" : [ "country", "political" ]
>> },
>> {
>> "long_name" : "94043",
>> "short_name" : "94043",
>> "types" : [ "postal_code" ]
>> }
>> ],
>> "formatted_address" : "1600 Amphitheatre Pkwy, Mountain View,
>> CA 94043, USA",
>> "geometry" : {
>> "location" : {
>> "lat" : 37.42208270,
>> "lng" : -122.082890
>> },
>> "location_type" : "ROOFTOP",
>> "viewport" : {
>> "northeast" : {
>> "lat" : 37.42343168029150,
>> "lng" : -122.0815410197085
>> },
>> "southwest" : {
>> "lat" : 37.42073371970850,
>> "lng" : -122.0842389802915
>> }
>> }
>> },
>> "types" : [ "street_address" ]
>> }
>> ],
>> "status" : "OK"
>> }
>>
>> --
>> Best Regards,
>> --raman
>>
>> --
>> Best Regards,
>> --raman
>>
>>
>> On 10/30/11, T.V. Raman < <EMAIL REMOVED> > wrote:
>>> See if this does what you want:
>>> "http://maps.google.com/maps/api/geocode/json?address=1600
>>> amphitheatre parkway mountain view CA&sensor=false"
>>>
>>>
>>> --
>>> Best Regards,
>>> --raman
>>>
>>> --
>>> Best Regards,
>>> --raman
>>>
>>>
>>> On 10/30/11, Bryan Garaventa < <EMAIL REMOVED> > wrote:
>>>> I've been looking for an answer to this for a while, but no luck.
>>>>
>>>> Is it possible to retrieve all available textual data associated with a
>>>> specific lng/lat using the Google Maps API? E.G. Country, city, region,
>>>> landmarks, or anything else.
>>>>
>>>> What I'm looking for is a property or method that will return this
>>>> textual
>>>> data so that it can be displayed after the map is rendered.
>>>>
>>>> I'm not sure if this level of detail actually exists, but hopefully
>>>> this
>>>> will clarify the ambiguity.
>>>>
>>>> Thanks,
>>>> Bryan
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>> "accessible" group.
>>>> To post to this group, send email to <EMAIL REMOVED> .
>>>> To unsubscribe from this group, send email to
>>>> accessible+ <EMAIL REMOVED> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/accessible?hl=en.
>>>>
>>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "accessible" group.
>> To post to this group, send email to <EMAIL REMOVED> .
>> To unsubscribe from this group, send email to
>> accessible+ <EMAIL REMOVED> .
>> For more options, visit this group at
>> http://groups.google.com/group/accessible?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "accessible" group.
> To post to this group, send email to <EMAIL REMOVED> .
> To unsubscribe from this group, send email to
> accessible+ <EMAIL REMOVED> .
> For more options, visit this group at
> http://groups.google.com/group/accessible?hl=en.
>