add address rank to XML output

The address rank is much more interesting than the search rank
these days because it tells something about the kind of object.

Reverse did have neither rank, so add both for consistency.
This commit is contained in:
Sarah Hoffmann 2020-12-01 17:54:53 +01:00
parent a9357b4dce
commit cf9b248f29
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,9 @@ if (empty($aPlace)) {
echo join(',', $aPlace['aBoundingBox']);
echo '"';
}
echo " place_rank='".$aPlace['rank_search']."'";
echo " address_rank='".$aPlace['rank_address']."'";
if (isset($aPlace['asgeojson'])) {
echo ' geojson=\'';

View File

@ -25,6 +25,7 @@ foreach ($aSearchResults as $iResNum => $aResult) {
echo " osm_id='".$aResult['osm_id']."'";
}
echo " place_rank='".$aResult['rank_search']."'";
echo " address_rank='".$aResult['rank_address']."'";
if (isset($aResult['aBoundingBox'])) {
echo ' boundingbox="';