示例#1
0
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" lang="en"></meta>
    <title>OSM Server Side Script</title>
  </head>
  <body>

    <h1>Overpass-API Query Form</h1>

		<?php 
require_once __DIR__ . '/../lib/OSM/Api.php';
/**
 * You can change the Overpass-API with option 'oapi_url'.
 * $osmop = new OSM_Api( array( 'oapi_url'=>'http://anotherinterpreter.org' ) );
 */
$osmop = new OSM_Api();
$oapiUrl = $osmop->getOption('oapi_url');
?>

		<p>A simple proxy to overpass-api using class OSM_Api at <a href="<?php 
echo $oapiUrl;
?>
"><?php 
echo $oapiUrl;
?>
</a><br/>
			Documentation:
			<a href="http://wiki.openstreetmap.org/wiki/Overpass_API">Overpass_API</a>,
			<a href="http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide">Overpass_API/Language_Guide</a>
		</p>
		<?php 
//echo 'get_magic_quotes_gpc(): ' . (get_magic_quotes_gpc() ? 'true' : 'false');