[OSM-talk-fr] geocoding basé sur OSM [Était] Vidéosurveillance

wouldsmina wouldsmina at gmail.com
Sam 8 Jan 11:45:12 UTC 2011


si ca interesse qq'un, j'ai fait ça en php:

function nominatim_revert ($lon,$lat) {

$url = '
http://nominatim.openstreetmap.org/reverse?format=xml&email=xxxxxxx@gmail.com&lat='.$lat.'&lon='.$lon
;
$xml  = simplexml_load_file($url);

$addr["num"] = $xml->addressparts->house_number;
$addr["rue"] = $xml->addressparts->road;
$addr["ville"] = $xml->addressparts->city;
$addr["cp"] = $xml->addressparts->postcode;
$addr["pays"] = $xml->addressparts->country;

return $addr;
}

a+

Le 7 janvier 2011 11:03, Thomas Clavier <tom at tcweb.org> a écrit :

> Le 07/01/2011 08:47, kimaidou a écrit :
> > Si vous le souhaitez, je peux faire tourner mon moteur de geocoding
> > basé sur OSM sur le fichier d'adresse OWNI  : ainsi on aura des
> > longitudes et latitudes calculées à partir d'OSM, et on sera donc sûr !
>
> géocoding ... OSM ... je n'ai pas encore approfondit le sujet mais il
> m'intéresse beaucoup, ton moteur est libre ? il fonctionne comment sur
> du nominatim ?
>
> --
> Thomas Clavier                 http://www.tcweb.org
> Jabber/XMPP/MSN/Gtalk :        tom at jabber.tcweb.org
> +33 (0)6 20 81 81 30           +33 (0)950 783 783
>
>
>
> _______________________________________________
> Talk-fr mailing list
> Talk-fr at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-fr
>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20110108/32cf59fc/attachment.htm>


Plus d'informations sur la liste de diffusion Talk-fr