mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-27 23:15:12 +03:00
19 lines
343 B
PHP
19 lines
343 B
PHP
<?php
|
|
|
|
|
|
function formatOSMType($sType, $bIncludeExternal = true)
|
|
{
|
|
if ($sType == 'N') return 'node';
|
|
if ($sType == 'W') return 'way';
|
|
if ($sType == 'R') return 'relation';
|
|
|
|
if (!$bIncludeExternal) return '';
|
|
|
|
if ($sType == 'T') return 'way';
|
|
if ($sType == 'I') return 'way';
|
|
|
|
// not handled: P, L
|
|
|
|
return '';
|
|
}
|