« Api gouv » : différence entre les versions
Aucun résumé des modifications |
|||
| Ligne 17 : | Ligne 17 : | ||
| | | | ||
==== Démo Requete 0 ==== | ==== 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> | |||
---- | |||
<syntaxhighlight lang="bash" copy> | <syntaxhighlight lang="bash" copy> | ||
curl -s "https://api-adresse.data.gouv.fr/reverse/?lon=3.951548&lat=49.417098" | jq '.features[0]' | curl -s "https://api-adresse.data.gouv.fr/reverse/?lon=3.951548&lat=49.417098" | jq '.features[0]' | ||