Modify

Opened 5 years ago

Closed 5 years ago

#5961 closed defect (fixed)

geopy/google give weird multiple locations

Reported by: k0s Owned by: k0s
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 5 years ago by k0s

related to #5962

comment:2 Changed 5 years ago by k0s

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

comment:3 Changed 5 years ago by k0s

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from k0s. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.