help with incorrect geocoding

16 views
Skip to first unread message

Telaviva Telaviva

unread,
May 18, 2011, 9:07:30 AM5/18/11
to google-map...@googlegroups.com
Hello

i am trying to work with the geocoding service
i send 3 requests

http://maps.googleapis.com/maps/api/geocode/json?address=10+Jabotinsky,+tel+aviv,+israel&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=99+Jabotinsky,+tel+aviv,+israel&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=99+dizengoff,+tel+aviv,+israel&sensor=false

but get the same answer
    "geometry": {
      "location": {
        "lat": 32.0661570,
        "lng": 34.7778210
      },

the point is not on any of these streets
so probably a default answer

when i look for those addresses in google map site
they come up fine (close enough)
what am i doing wrong
please help

thank you
Tal

geoco...@gmail.com

unread,
May 18, 2011, 9:23:07 AM5/18/11
to Google Maps JavaScript API v3
On May 18, 6:07 am, Telaviva Telaviva <telaviv...@gmail.com> wrote:
> Hello
>
> i am trying to work with the geocoding service
> i send 3 requests
>
> http://maps.googleapis.com/maps/api/geocode/json?address=10+Jabotinsk...http://maps.googleapis.com/maps/api/geocode/json?address=99+Jabotinsk...http://maps.googleapis.com/maps/api/geocode/json?address=99+dizengoff...
>
> but get the same answer
>
>     "geometry": {
>       "location": {
>         "lat": 32.0661570,
>         "lng": 34.7778210
>       },
>
> the point is not on any of these streets
> so probably a default answer

"formatted_address": "Tel Aviv, Israel",
"address_components": [ {
"long_name": "Tel Aviv",
"short_name": "Tel Aviv",
"types": [ "locality", "political" ]
}, {
"long_name": "Israel",
"short_name": "IL",
"types": [ "country", "political" ]
} ],
"geometry": {
"location": {
"lat": 32.0661570,
"lng": 34.7778210
},
"location_type": "APPROXIMATE",

That is probably why it is giving the "location_type": "APPROXIMATE".
and it looks like it is giving you Tel Aviv, Israel for all the
responses.

Note that the google maps APIs do not contain as much data as google
maps for contractual reasons.

http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=Israel&qt_g=Search+this+group

-- Larry
Reply all
Reply to author
Forward
0 new messages