X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1cb55c6e318cb86cd1d44463eff4b951496134c0..6b65b9086b4434c6cc69bf4c8a3f778af5b91115:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 095bfb79..fa801ac4 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -4,7 +4,7 @@ { $aPlace = array( 'place_id'=>$aPointDetails['place_id'], - 'licence'=>"Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.", + 'licence'=>"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright", ); $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':''))); @@ -36,6 +36,7 @@ $aPlace['lat'] = $aPointDetails['lat']; $aPlace['lon'] = $aPointDetails['lon']; $aPlace['display_name'] = $aPointDetails['name']; + $aPlace['place_rank'] = $aResult['rank_search']; $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type'];