pour information, c'est curl qui exige l'arrobase pour indiquer un fichier,
pas les données eux-meme.

On Fri, Jun 7, 2019 at 10:03 PM Johnparis <ok...@johnfreed.com> wrote:

> 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.me...@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_...@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@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk-fr
>>>
>> _______________________________________________
>> Talk-fr mailing list
>> Talk-fr@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk-fr
>>
>
_______________________________________________
Talk-fr mailing list
Talk-fr@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-fr

Répondre à