Modify

Opened 15 years ago

Closed 15 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 15 years ago by Jeff Hammel

related to #5962

comment:2 Changed 15 years ago by Jeff Hammel

this is effectively resolved by r6693, though there may be edge cases

comment:3 Changed 15 years ago by Jeff Hammel

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeff Hammel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.