openblock icon indicating copy to clipboard operation
openblock copied to clipboard

Geocoder ambiguous results: check the street suffix

Open slinkp opened this issue 13 years ago • 1 comments

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 avatar Sep 28 '12 20:09 slinkp

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

slinkp avatar Sep 28 '12 20:09 slinkp