palewire/python-googlegeocoder

Precision on Address

Closed this issue · 3 comments

Hi all,

First, sorry for ask here.

If I do a seach = geocoder.get("W 45th St, New York City, NY 10036"), google find this address and return the coordinates.

But if I do a search = geocoder.get("W 110th St, New York City, NY 10036"), this address dosen't exits, but google return coordinates (partial match I think).

How can I know If the returned coordinates are from a real address or a partial address?

In the google documentation exists as "partial_match" attribute.

Thks.

Already find, search[0].geometry.partial_match

You work it out?

Hi,

At the end, this didn't work for wat I was looking for, I used this:

search[0].geometry.location_type != u'APPROXIMATE'

In the google docs:

"APPROXIMATE" means that coordinates are aproximated, not found the search.

By