]> git.openstreetmap.org Git - nominatim.git/blob - lib-php/website/reverse-only-search.php
Resolve conflicts
[nominatim.git] / lib-php / website / reverse-only-search.php
1 <?php
2
3 require_once(CONST_LibDir.'/init-website.php');
4 require_once(CONST_LibDir.'/ParameterParser.php');
5
6 $oParams = new Nominatim\ParameterParser();
7
8 // Format for output
9 $sOutputFormat = $oParams->getSet('format', array('xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'jsonv2');
10 set_exception_handler_by_format($sOutputFormat);
11
12 throw new Exception('Reverse-only import does not support forward searching.', 404);