mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
reverse: choose interpolation only when further than point
The ST_DWithin check also includes objects that are the same distance. Another attempt at #545.
This commit is contained in:
@@ -153,7 +153,7 @@ class ReverseGeocode
|
||||
// look for an interpolation that is closer
|
||||
$aPlaceLine = $this->lookupInterpolation($sPointSQL, $fDistancePlacex);
|
||||
|
||||
if ($aPlaceLine) {
|
||||
if ($aPlaceLine && (float) $aPlaceLine['distance'] < (float) $fDistancePlacex) {
|
||||
// interpolation is closer to point than placex house
|
||||
$bPlaceIsLine = true;
|
||||
$aPlace = $aPlaceLine;
|
||||
|
||||
Reference in New Issue
Block a user