« Api gouv » : différence entre les versions
| Ligne 13 : | Ligne 13 : | ||
=== adresse.data.gouv.fr === | === adresse.data.gouv.fr === | ||
==== Démo Requete ==== | |||
<syntaxhighlight lang="bash" line copy> | |||
curl -s "https://api-adresse.data.gouv.fr/search/?q=clermont+ferrand&type=municipality" | \ | |||
jq '.features[] | {citycode: .properties.citycode, postcode: .properties.postcode, commune: .properties.city}' | |||
</syntaxhighlight> | |||
==== Scripts BASH adresse ==== | ==== Scripts BASH adresse ==== | ||
<syntaxhighlight lang="bash" line copy> | <syntaxhighlight lang="bash" line copy> | ||