[OSM-talk-fr] Géocodage inverse d'un csv avec https://adresse.data.gouv.fr/api

Johnparis okosm at johnfreed.com
Ven 7 Juin 20:03:19 UTC 2019


syntaxe :

1) il faut utilise l'arrobase après "data="
2) après avoir changé @lat->lat et @lon->lon dans ecolesmaternelles54.csv,
il marche. Resultats ci-joints.

curl -X POST -F "data=@ecolesmaternelles54.csv" "
https://api-adresse.data.gouv.fr/reverse/csv/" > result.csv

On Fri, Jun 7, 2019 at 9:49 PM Romain MEHUT <romain.mehut at gmail.com> wrote:

> En d'autres termes, le problème vient de
> https://api-adresse.data.gouv.fr/reverse/csv/ ?
>
> Merci.
>
> Romain
>
> Le ven. 7 juin 2019 à 21:45, marc marc <marc_marc_irc at hotmail.com> a
> écrit :
>
>> j'ai pensé à cela aussi mais j'ai testé en supprimant
>> une décimale à la fois jusqu'à ne plus en avoir, même erreur
>> $ cat test.csv ; curl -X POST -F data=test.csv
>> https://api-adresse.data.gouv.fr/reverse/csv/
>> latitude,longitude
>> 48.716261,6.491425
>> <...>Internal Server Error<...>
>>
>> la même précision/localisation avec l'api non csv fonctionne
>> $ curl
>> "https://api-adresse.data.gouv.fr/reverse/?lon=6.491425&lat=48.716261"
>> <...>"3 Grande Rue 54370 Athienville">...>
>>
>> ceci dit attention à la doc, les exemples de lignes de commandes
>> sont inventé/non testé : un curl avec une url contenant des & sans ""
>> ne peux pas fonctionner, c'est ***
>> _______________________________________________
>> Talk-fr mailing list
>> Talk-fr at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk-fr
>>
> _______________________________________________
> Talk-fr mailing list
> Talk-fr at openstreetmap.org
> https://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/20190607/3ec0061f/attachment.htm>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: result.csv
Type: text/csv
Taille: 54805 octets
Desc: non disponible
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20190607/3ec0061f/attachment.csv>


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