Modify ↓
Opened 16 years ago
Closed 16 years ago
#5961 closed defect (fixed)
geopy/google give weird multiple locations
| Reported by: | Jeff Hammel | Owned by: | Jeff Hammel |
|---|---|---|---|
| Priority: | normal | Component: | GeoTicketPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
For the string: 12th St, Brooklyn, NY 11215, USA, one of the locations geopy gives back is 12th St, Brooklyn, NY 11215, USA:
Warning: Multiple locations found for 12th St, Brooklyn, NY 11215, USA:
* 12th St, Brooklyn, NY 11215, USA
* 12th St, Brooklyn, New York 11215, USA
* E 12th St, Brooklyn, NY, USA
* E 12th St, Brooklyn, NY, USA
* 12th Ave, Brooklyn, NY 11215, USA
Of course, this is ambiguous
>>> import geopy >>> geocoder = geopy.geocoders.Google() >>> location = '12th St, Brooklyn, NY 11215, USA' >>> list(geocoder.geocode(location, exactly_one=False)) Fetching http://maps.google.com/maps/geo?q=12th+St%2C+Brooklyn%2C+NY+11215%2C+USA&output=kml&key=None... [(u'12th St, Brooklyn, NY 11215, USA', (40.667394000000002, -73.987797900000004)), (u'12th St, Brooklyn, New York 11215, USA', (40.663288999999999, -73.979184000000004)), (u'E 12th St, Brooklyn, NY, USA', (40.621290000000002, -73.963494499999996)), (u'E 12th St, Brooklyn, NY, USA', (40.640046099999999, -73.967050700000001)), (u'12th Ave, Brooklyn, NY 11215, USA', (40.672288000000002, -73.996966999999998))]
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
this is effectively resolved by r6693, though there may be edge cases
comment:3 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



related to #5962