mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 00:49:55 +03:00
27af9b102c
This adds bracket around all one-line if statements that did not have them yet.
31 lines
439 B
PHP
31 lines
439 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 '';
|
|
}
|