]> git.openstreetmap.org Git - nominatim.git/blob - lib-php/output.php
Merge pull request #2390 from lonvia/responsible-disclosure
[nominatim.git] / lib-php / output.php
1 <?php
2
3
4 function formatOSMType($sType, $bIncludeExternal = true)
5 {
6     if ($sType == 'N') return 'node';
7     if ($sType == 'W') return 'way';
8     if ($sType == 'R') return 'relation';
9
10     if (!$bIncludeExternal) return '';
11
12     if ($sType == 'T') return 'way';
13     if ($sType == 'I') return 'way';
14
15     // not handled: P, L
16
17     return '';
18 }