openplans / openblock

OpenBlock is a web application and RESTful service that allows users to browse and search their local area for "hyper-local news
61 stars 26 forks source link

Geocoder ambiguous results: check the street suffix #288

Open slinkp opened 11 years ago

slinkp commented 11 years ago

Example:

>>> full_geocode('101 N Fourth St')
{'ambiguous': True, 'street_name': u'Fourth St', 'type': 'block', 'result': [<Block: 1-61 Fourth St>, <Block: 1-99 4th Ave>, <Block: 63-598 Fourth St>, <Block: 100-198 4th Ave>, <Block: 111-698 Fourth St>, <Block: 117-299 4th Ave>, <Block: 1-99 N. 4th St>, <Block: 600-699 N. 4th St>, <Block: 700-799 N. 4th St>, <Block: 800-899 N. 4th St>, <Block: 100-199 S. 4th St>, <Block: 500-615 S. 4th St>], 'block_number': u'101'}

Why is that bothering to return any blocks on 4th Ave?

slinkp commented 11 years ago

Ticket imported from Trac: http://developer.openblockproject.org/ticket/295 Reported by: slinkp