mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
move ClassTypes into own namespace
Also adds some convenience functions for lookups.
This commit is contained in:
@@ -54,12 +54,11 @@ if ($sOsmType && $iOsmId > 0) {
|
||||
}
|
||||
|
||||
if (isset($aPlace)) {
|
||||
$fRadius = $fDiameter = getResultDiameter($aPlace);
|
||||
$aOutlineResult = $oPlaceLookup->getOutlines(
|
||||
$aPlace['place_id'],
|
||||
$aPlace['lon'],
|
||||
$aPlace['lat'],
|
||||
$fRadius,
|
||||
Nominatim\ClassTypes\getProperty($aPlace, 'defdiameter', 0.0001),
|
||||
$fLat,
|
||||
$fLon
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user