3 require_once(CONST_LibDir.'/init-website.php');
 
   4 require_once(CONST_LibDir.'/ParameterParser.php');
 
   6 $oParams = new Nominatim\ParameterParser();
 
   9 $sOutputFormat = $oParams->getSet('format', array('xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'jsonv2');
 
  10 set_exception_handler_by_format($sOutputFormat);
 
  12 throw new Exception('Reverse-only import does not support forward searching.', 404);