open-meteo / geocoding-api

Search locations in any language worlwide
GNU Affero General Public License v3.0
15 stars 7 forks source link

Add adminX_code in results #11

Open papjul opened 11 months ago

papjul commented 11 months ago

Previous discussion: open-meteo/open-meteo#355

Reopening here as I opened it on the wrong repo.


Initial message:

Just like we have country_code (IT, FR, etc), would it be possible to add admin1_code, admin2_code, etc?

image

image

This will be useful for #351 as Météo-France emits alerts by admin2 and using the admin2_code is much easier than having to parse the admin2 translatable field.

Thank you!