Nominatim/lib-php/output.php

19 lines
343 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';
if (!$bIncludeExternal) return '';
if ($sType == 'T') return 'way';
2016-09-04 04:19:48 +03:00
if ($sType == 'I') return 'way';
// not handled: P, L
2016-09-04 04:19:48 +03:00
return '';
}