X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db3ced17bbfff00411f506d8c84419c875959d5e..27af9b102c2d6167b9025d594f8cb75e4dd76a03:/lib-php/output.php diff --git a/lib-php/output.php b/lib-php/output.php index 8de81576..ee1db44c 100644 --- a/lib-php/output.php +++ b/lib-php/output.php @@ -3,14 +3,26 @@ function formatOSMType($sType, $bIncludeExternal = true) { - if ($sType == 'N') return 'node'; - if ($sType == 'W') return 'way'; - if ($sType == 'R') return 'relation'; + if ($sType == 'N') { + return 'node'; + } + if ($sType == 'W') { + return 'way'; + } + if ($sType == 'R') { + return 'relation'; + } - if (!$bIncludeExternal) return ''; + if (!$bIncludeExternal) { + return ''; + } - if ($sType == 'T') return 'way'; - if ($sType == 'I') return 'way'; + if ($sType == 'T') { + return 'way'; + } + if ($sType == 'I') { + return 'way'; + } // not handled: P, L