« Api gouv » : différence entre les versions
| Ligne 18 : | Ligne 18 : | ||
jq '.features[] | {citycode: .properties.citycode, postcode: .properties.postcode, commune: .properties.city}' | jq '.features[] | {citycode: .properties.citycode, postcode: .properties.postcode, commune: .properties.city}' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Résultat: | |||
<syntaxhighlight lang="json" line> | |||
{ | |||
"citycode": "63113", | |||
"postcode": "63000", | |||
"commune": "Clermont-Ferrand" | |||
} | |||
</syntaxhighlight> | |||
==== Scripts BASH adresse ==== | ==== Scripts BASH adresse ==== | ||