move ClassTypes into own namespace

Also adds some convenience functions for lookups.
This commit is contained in:
Sarah Hoffmann
2018-07-09 23:20:46 +02:00
parent 879f818d81
commit 320d488627
7 changed files with 409 additions and 416 deletions

View File

@@ -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
);