Nominatim/lib-php/output.php

31 lines
439 B
PHP
Raw Normal View History

<?php
function formatOSMType($sType, $bIncludeExternal = true)
2016-09-04 04:19:48 +03:00
{
if ($sType == 'N') {
return 'node';
}
if ($sType == 'W') {
return 'way';
}
if ($sType == 'R') {
return 'relation';
}
2016-09-04 04:19:48 +03:00
if (!$bIncludeExternal) {
return '';
}
2016-09-04 04:19:48 +03:00
if ($sType == 'T') {
return 'way';
}
if ($sType == 'I') {
return 'way';
}
2016-09-04 04:19:48 +03:00
// not handled: P, L
2016-09-04 04:19:48 +03:00
return '';
}