mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
final result ordering, remove GB postcode hacks
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
return ($a['aPointPolygon']['numfeatures'] > $b['aPointPolygon']['numfeatures']?-1:1);
|
||||
if ($a['aPointPolygon']['area'] != $b['aPointPolygon']['area'])
|
||||
return ($a['aPointPolygon']['area'] > $b['aPointPolygon']['area']?-1:1);
|
||||
if ($a['levenshtein'] != $b['levenshtein'])
|
||||
return ($a['levenshtein'] < $b['levenshtein']?-1:1);
|
||||
if ($a['importance'] != $b['importance'])
|
||||
return ($a['importance'] < $b['importance']?-1:1);
|
||||
return ($a['foundorder'] < $b['foundorder']?-1:1);
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
echo " osm_type='$sOSMType'";
|
||||
echo " osm_id='".$aResult['osm_id']."'";
|
||||
}
|
||||
echo " place_rank='".$aResult['rank_search']."'";
|
||||
|
||||
if (isset($aResult['aBoundingBox']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user