<slide>
<title>Looking up latitude and longitude from a location</title>
<div effect="fade-out">
<iframe filename='examples/openlayers-nominatim.php?name=:-:location:-:' image='openlayers-nominatim.png'/>
</div>
<div effect="fade-in">
<example result="1"><![CDATA[
<?php
$baseUrl = 'http://nominatim.openstreetmap.org/search?format=json&limit=1';
$name = urlencode( ':-:location:-:' );
$data = file_get_contents( "{$baseUrl}&q={$name}" );
$json = json_decode( $data );

var_dump( $json[0] );
?>
]]></example>
</div>
</slide>
