]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-jsonv2.php
return actual centroid lat,lon of reverse geocoding result
[nominatim.git] / lib / template / address-jsonv2.php
index b6fa58fee398484b10e8b8ee58b189880d7183ab..f9592d8b746663a6b11ba44b71a72b812025acb0 100644 (file)
@@ -21,6 +21,8 @@
                         $aFilteredPlaces['osm_type'] = $sOSMType;\r
                         $aFilteredPlaces['osm_id'] = $aPlace['osm_id'];\r
                 }\r
+               if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];\r
+               if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];\r
                 $aFilteredPlaces['category'] = $aPlace['class'];\r
                 $aFilteredPlaces['type'] = $aPlace['type'];\r
                 $aFilteredPlaces['addresstype'] = strtolower($aPlace['addresstype']);\r