« Api gouv » : différence entre les versions

Balise : Révoqué
Aucun résumé des modifications
Balise : Révocation manuelle
Ligne 35 : Ligne 35 :
=== adresse.data.gouv.fr ===
=== adresse.data.gouv.fr ===


{{#ifanon:
|
==== Démo Requete 0 ====
<syntaxhighlight lang="bash" copy>
curl -s "https://api-adresse.data.gouv.fr/search/?q=8+rue+du+chateau&city=conde+sur+suippe&postcode=02190&autocomplete=0" | jq '.features[0].geometry.coordinates'
</syntaxhighlight>


<syntaxhighlight lang="json">
[
  3.951548,
  49.417098
]
</syntaxhighlight>
test google maps: <br />
[https://www.google.fr/maps/place/49.417098,3.951548 google.fr/maps/place/49.417098,3.951548]
----
<syntaxhighlight lang="bash" copy>
curl -s "https://api-adresse.data.gouv.fr/reverse/?lon=3.951548&lat=49.417098" | jq '.features[0]'
</syntaxhighlight>
}}