during reverse geocode lookup we also check the (optional) Tiger data #268
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When we don't find a result with rank 30 (building name, house number etc) but find a road, then inside the US we also check the nearest Tiger house numbers who have the street as parent.
The
osm_type
is 'T' and theosm_id
is the place_id. Not entirely sure if that makes sense butGeocode.php
sets the same.In
PlaceLookup.php
right afterif ($this->bIsTiger)
it would be possible to use aUNION
to combine both SQL queries. But since it's a direct lookup by place_id and we already know the place is a Tiger place a single query is enough.I've setup a server at http://46.101.149.108:9876/nominatim were you can test the results. For example http://46.101.149.108:9876/nominatim/reverse.php?format=xml&lat=40.6859534063625&lon=-112.055149368461 which will return
6882, Kings Estate Drive, West Valley City, Salt Lake County, 84128, United States of America
.The server has only data loaded for the Salt Lake City, Utah area. See the bounding box on http://bboxfinder.com/#40.310949,-112.376404,41.391234,-111.549683
This feature got sponsored/paid for by Guru Labs. Thanks a lot!