Merge pull request #8901 from tchak/fix-champ-commune-hors-departement
fix(dossier): find communes outside of departement
This commit is contained in:
commit
6a627dc140
246 changed files with 4253 additions and 433 deletions
|
@ -35,7 +35,7 @@ class APIGeoService
|
|||
end
|
||||
|
||||
def departements
|
||||
[{ code: '99', name: 'Etranger' }] + get_from_api_geo('departements?zone=metro,drom,com').sort_by { _1[:code] }
|
||||
[{ code: '99', name: 'Etranger' }] + get_from_api_geo(:departements).sort_by { _1[:code] }
|
||||
end
|
||||
|
||||
def departement_name(code)
|
||||
|
@ -48,7 +48,7 @@ class APIGeoService
|
|||
end
|
||||
|
||||
def epcis(departement_code)
|
||||
get_from_api_geo("epcis?codeDepartement=#{departement_code}").sort_by { I18n.transliterate(_1[:name]) }
|
||||
get_from_api_geo("epcis-#{departement_code}").sort_by { I18n.transliterate(_1[:name]) }
|
||||
end
|
||||
|
||||
def epci_name(departement_code, code)
|
||||
|
@ -60,25 +60,12 @@ class APIGeoService
|
|||
end
|
||||
|
||||
def communes(departement_code)
|
||||
get_from_api_geo("communes?codeDepartement=#{departement_code}&type=commune-actuelle,arrondissement-municipal").sort_by { I18n.transliterate([_1[:name], _1[:postal_code]].join(' ')) }
|
||||
get_from_api_geo("communes-#{departement_code}").sort_by { I18n.transliterate([_1[:name], _1[:postal_code]].join(' ')) }
|
||||
end
|
||||
|
||||
def communes_by_postal_code(postal_code)
|
||||
if postal_code.size > 3
|
||||
metro_code = postal_code[0..1]
|
||||
drom_com_code = postal_code[0..2]
|
||||
if metro_code == '20'
|
||||
communes('2A') + communes('2B')
|
||||
elsif metro_code == '97' || metro_code == '98'
|
||||
departement_name(drom_com_code) ? communes(drom_com_code) : []
|
||||
else
|
||||
departement_name(metro_code) ? communes(metro_code) : []
|
||||
end
|
||||
.filter { _1[:postal_code] == postal_code }
|
||||
.sort_by { I18n.transliterate([_1[:name], _1[:postal_code]].join(' ')) }
|
||||
else
|
||||
[]
|
||||
end
|
||||
communes_by_postal_code_map.fetch(postal_code, [])
|
||||
.sort_by { I18n.transliterate([_1[:name], _1[:postal_code]].join(' ')) }
|
||||
end
|
||||
|
||||
def commune_name(departement_code, code)
|
||||
|
@ -91,28 +78,23 @@ class APIGeoService
|
|||
|
||||
private
|
||||
|
||||
def get_from_api_geo(scope)
|
||||
Rails.cache.fetch("api_geo_#{scope}", expires_in: 1.year) do
|
||||
response = Typhoeus.get("#{API_GEO_URL}/#{scope}")
|
||||
JSON.parse(response.body).map(&:symbolize_keys).flat_map do |result|
|
||||
item = {
|
||||
name: result[:nom].tr("'", '’'),
|
||||
code: result[:code],
|
||||
epci_code: result[:codeEpci],
|
||||
departement_code: result[:codeDepartement]
|
||||
}.compact
|
||||
def communes_by_postal_code_map
|
||||
Rails.cache.fetch('api_geo_communes', expires_in: 1.week) do
|
||||
departements
|
||||
.filter { _1[:code] != '99' }
|
||||
.flat_map { communes(_1[:code]) }
|
||||
.group_by { _1[:postal_code] }
|
||||
end
|
||||
end
|
||||
|
||||
if result[:codesPostaux].present?
|
||||
result[:codesPostaux].map { item.merge(postal_code: _1) }
|
||||
else
|
||||
[item]
|
||||
end
|
||||
end
|
||||
def get_from_api_geo(scope)
|
||||
Rails.cache.fetch("api_geo_#{scope}", expires_in: 1.week) do
|
||||
JSON.parse(Rails.root.join('lib', 'data', 'api_geo', "#{scope}.json").read, symbolize_names: true)
|
||||
end
|
||||
end
|
||||
|
||||
def countries_index_fr
|
||||
Rails.cache.fetch('countries_index_fr', expires_in: 1.year) do
|
||||
Rails.cache.fetch('countries_index_fr', expires_in: 1.week) do
|
||||
countries(locale: 'FR').index_by { I18n.transliterate(_1[:name]).upcase }
|
||||
end
|
||||
end
|
||||
|
|
1
lib/data/api_geo/communes-01.json
Normal file
1
lib/data/api_geo/communes-01.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-02.json
Normal file
1
lib/data/api_geo/communes-02.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-03.json
Normal file
1
lib/data/api_geo/communes-03.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-04.json
Normal file
1
lib/data/api_geo/communes-04.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-05.json
Normal file
1
lib/data/api_geo/communes-05.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-06.json
Normal file
1
lib/data/api_geo/communes-06.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-07.json
Normal file
1
lib/data/api_geo/communes-07.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-08.json
Normal file
1
lib/data/api_geo/communes-08.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-09.json
Normal file
1
lib/data/api_geo/communes-09.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-10.json
Normal file
1
lib/data/api_geo/communes-10.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-11.json
Normal file
1
lib/data/api_geo/communes-11.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-12.json
Normal file
1
lib/data/api_geo/communes-12.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-13.json
Normal file
1
lib/data/api_geo/communes-13.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-14.json
Normal file
1
lib/data/api_geo/communes-14.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-15.json
Normal file
1
lib/data/api_geo/communes-15.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-16.json
Normal file
1
lib/data/api_geo/communes-16.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-17.json
Normal file
1
lib/data/api_geo/communes-17.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-18.json
Normal file
1
lib/data/api_geo/communes-18.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-19.json
Normal file
1
lib/data/api_geo/communes-19.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-21.json
Normal file
1
lib/data/api_geo/communes-21.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-22.json
Normal file
1
lib/data/api_geo/communes-22.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-23.json
Normal file
1
lib/data/api_geo/communes-23.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-24.json
Normal file
1
lib/data/api_geo/communes-24.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-25.json
Normal file
1
lib/data/api_geo/communes-25.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-26.json
Normal file
1
lib/data/api_geo/communes-26.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-27.json
Normal file
1
lib/data/api_geo/communes-27.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-28.json
Normal file
1
lib/data/api_geo/communes-28.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-29.json
Normal file
1
lib/data/api_geo/communes-29.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-2A.json
Normal file
1
lib/data/api_geo/communes-2A.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-2B.json
Normal file
1
lib/data/api_geo/communes-2B.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-30.json
Normal file
1
lib/data/api_geo/communes-30.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-31.json
Normal file
1
lib/data/api_geo/communes-31.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-32.json
Normal file
1
lib/data/api_geo/communes-32.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-33.json
Normal file
1
lib/data/api_geo/communes-33.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-34.json
Normal file
1
lib/data/api_geo/communes-34.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-35.json
Normal file
1
lib/data/api_geo/communes-35.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-36.json
Normal file
1
lib/data/api_geo/communes-36.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-37.json
Normal file
1
lib/data/api_geo/communes-37.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-38.json
Normal file
1
lib/data/api_geo/communes-38.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-39.json
Normal file
1
lib/data/api_geo/communes-39.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-40.json
Normal file
1
lib/data/api_geo/communes-40.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-41.json
Normal file
1
lib/data/api_geo/communes-41.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-42.json
Normal file
1
lib/data/api_geo/communes-42.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-43.json
Normal file
1
lib/data/api_geo/communes-43.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-44.json
Normal file
1
lib/data/api_geo/communes-44.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-45.json
Normal file
1
lib/data/api_geo/communes-45.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-46.json
Normal file
1
lib/data/api_geo/communes-46.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-47.json
Normal file
1
lib/data/api_geo/communes-47.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-48.json
Normal file
1
lib/data/api_geo/communes-48.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-49.json
Normal file
1
lib/data/api_geo/communes-49.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-50.json
Normal file
1
lib/data/api_geo/communes-50.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-51.json
Normal file
1
lib/data/api_geo/communes-51.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-52.json
Normal file
1
lib/data/api_geo/communes-52.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-53.json
Normal file
1
lib/data/api_geo/communes-53.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-54.json
Normal file
1
lib/data/api_geo/communes-54.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-55.json
Normal file
1
lib/data/api_geo/communes-55.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-56.json
Normal file
1
lib/data/api_geo/communes-56.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-57.json
Normal file
1
lib/data/api_geo/communes-57.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-58.json
Normal file
1
lib/data/api_geo/communes-58.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-59.json
Normal file
1
lib/data/api_geo/communes-59.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-60.json
Normal file
1
lib/data/api_geo/communes-60.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-61.json
Normal file
1
lib/data/api_geo/communes-61.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-62.json
Normal file
1
lib/data/api_geo/communes-62.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-63.json
Normal file
1
lib/data/api_geo/communes-63.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-64.json
Normal file
1
lib/data/api_geo/communes-64.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-65.json
Normal file
1
lib/data/api_geo/communes-65.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-66.json
Normal file
1
lib/data/api_geo/communes-66.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-67.json
Normal file
1
lib/data/api_geo/communes-67.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-68.json
Normal file
1
lib/data/api_geo/communes-68.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-69.json
Normal file
1
lib/data/api_geo/communes-69.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-70.json
Normal file
1
lib/data/api_geo/communes-70.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-71.json
Normal file
1
lib/data/api_geo/communes-71.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-72.json
Normal file
1
lib/data/api_geo/communes-72.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-73.json
Normal file
1
lib/data/api_geo/communes-73.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-74.json
Normal file
1
lib/data/api_geo/communes-74.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-75.json
Normal file
1
lib/data/api_geo/communes-75.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75001"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75002"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75003"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75004"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75005"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75006"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75007"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75008"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75009"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75010"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75011"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75012"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75013"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75014"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75015"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75016"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75017"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75018"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75019"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75020"},{"name":"Paris","code":"75056","epci_code":"200054781","departement_code":"75","postal_code":"75116"},{"name":"Paris 1er Arrondissement","code":"75101","departement_code":"75","postal_code":"75001"},{"name":"Paris 2e Arrondissement","code":"75102","departement_code":"75","postal_code":"75002"},{"name":"Paris 3e Arrondissement","code":"75103","departement_code":"75","postal_code":"75003"},{"name":"Paris 4e Arrondissement","code":"75104","departement_code":"75","postal_code":"75004"},{"name":"Paris 5e Arrondissement","code":"75105","departement_code":"75","postal_code":"75005"},{"name":"Paris 6e Arrondissement","code":"75106","departement_code":"75","postal_code":"75006"},{"name":"Paris 7e Arrondissement","code":"75107","departement_code":"75","postal_code":"75007"},{"name":"Paris 8e Arrondissement","code":"75108","departement_code":"75","postal_code":"75008"},{"name":"Paris 9e Arrondissement","code":"75109","departement_code":"75","postal_code":"75009"},{"name":"Paris 10e Arrondissement","code":"75110","departement_code":"75","postal_code":"75010"},{"name":"Paris 11e Arrondissement","code":"75111","departement_code":"75","postal_code":"75011"},{"name":"Paris 12e Arrondissement","code":"75112","departement_code":"75","postal_code":"75012"},{"name":"Paris 13e Arrondissement","code":"75113","departement_code":"75","postal_code":"75013"},{"name":"Paris 14e Arrondissement","code":"75114","departement_code":"75","postal_code":"75014"},{"name":"Paris 15e Arrondissement","code":"75115","departement_code":"75","postal_code":"75015"},{"name":"Paris 16e Arrondissement","code":"75116","departement_code":"75","postal_code":"75016"},{"name":"Paris 16e Arrondissement","code":"75116","departement_code":"75","postal_code":"75116"},{"name":"Paris 17e Arrondissement","code":"75117","departement_code":"75","postal_code":"75017"},{"name":"Paris 18e Arrondissement","code":"75118","departement_code":"75","postal_code":"75018"},{"name":"Paris 19e Arrondissement","code":"75119","departement_code":"75","postal_code":"75019"},{"name":"Paris 20e Arrondissement","code":"75120","departement_code":"75","postal_code":"75020"}]
|
1
lib/data/api_geo/communes-76.json
Normal file
1
lib/data/api_geo/communes-76.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-77.json
Normal file
1
lib/data/api_geo/communes-77.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-78.json
Normal file
1
lib/data/api_geo/communes-78.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-79.json
Normal file
1
lib/data/api_geo/communes-79.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-80.json
Normal file
1
lib/data/api_geo/communes-80.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-81.json
Normal file
1
lib/data/api_geo/communes-81.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-82.json
Normal file
1
lib/data/api_geo/communes-82.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-83.json
Normal file
1
lib/data/api_geo/communes-83.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-84.json
Normal file
1
lib/data/api_geo/communes-84.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-85.json
Normal file
1
lib/data/api_geo/communes-85.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-86.json
Normal file
1
lib/data/api_geo/communes-86.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-87.json
Normal file
1
lib/data/api_geo/communes-87.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-88.json
Normal file
1
lib/data/api_geo/communes-88.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-89.json
Normal file
1
lib/data/api_geo/communes-89.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-90.json
Normal file
1
lib/data/api_geo/communes-90.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-91.json
Normal file
1
lib/data/api_geo/communes-91.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-92.json
Normal file
1
lib/data/api_geo/communes-92.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"Antony","code":"92002","epci_code":"200054781","departement_code":"92","postal_code":"92160"},{"name":"Asnières-sur-Seine","code":"92004","epci_code":"200054781","departement_code":"92","postal_code":"92600"},{"name":"Bagneux","code":"92007","epci_code":"200054781","departement_code":"92","postal_code":"92220"},{"name":"Bois-Colombes","code":"92009","epci_code":"200054781","departement_code":"92","postal_code":"92270"},{"name":"Boulogne-Billancourt","code":"92012","epci_code":"200054781","departement_code":"92","postal_code":"92100"},{"name":"Bourg-la-Reine","code":"92014","epci_code":"200054781","departement_code":"92","postal_code":"92340"},{"name":"Châtenay-Malabry","code":"92019","epci_code":"200054781","departement_code":"92","postal_code":"92290"},{"name":"Châtillon","code":"92020","epci_code":"200054781","departement_code":"92","postal_code":"92320"},{"name":"Chaville","code":"92022","epci_code":"200054781","departement_code":"92","postal_code":"92370"},{"name":"Clamart","code":"92023","epci_code":"200054781","departement_code":"92","postal_code":"92140"},{"name":"Clichy","code":"92024","epci_code":"200054781","departement_code":"92","postal_code":"92110"},{"name":"Colombes","code":"92025","epci_code":"200054781","departement_code":"92","postal_code":"92700"},{"name":"Courbevoie","code":"92026","epci_code":"200054781","departement_code":"92","postal_code":"92400"},{"name":"Fontenay-aux-Roses","code":"92032","epci_code":"200054781","departement_code":"92","postal_code":"92260"},{"name":"Garches","code":"92033","epci_code":"200054781","departement_code":"92","postal_code":"92380"},{"name":"La Garenne-Colombes","code":"92035","epci_code":"200054781","departement_code":"92","postal_code":"92250"},{"name":"Gennevilliers","code":"92036","epci_code":"200054781","departement_code":"92","postal_code":"92230"},{"name":"Issy-les-Moulineaux","code":"92040","epci_code":"200054781","departement_code":"92","postal_code":"92130"},{"name":"Levallois-Perret","code":"92044","epci_code":"200054781","departement_code":"92","postal_code":"92300"},{"name":"Malakoff","code":"92046","epci_code":"200054781","departement_code":"92","postal_code":"92240"},{"name":"Marnes-la-Coquette","code":"92047","epci_code":"200054781","departement_code":"92","postal_code":"92430"},{"name":"Meudon","code":"92048","epci_code":"200054781","departement_code":"92","postal_code":"92190"},{"name":"Meudon","code":"92048","epci_code":"200054781","departement_code":"92","postal_code":"92360"},{"name":"Montrouge","code":"92049","epci_code":"200054781","departement_code":"92","postal_code":"92120"},{"name":"Nanterre","code":"92050","epci_code":"200054781","departement_code":"92","postal_code":"92000"},{"name":"Neuilly-sur-Seine","code":"92051","epci_code":"200054781","departement_code":"92","postal_code":"92200"},{"name":"Le Plessis-Robinson","code":"92060","epci_code":"200054781","departement_code":"92","postal_code":"92350"},{"name":"Puteaux","code":"92062","epci_code":"200054781","departement_code":"92","postal_code":"92800"},{"name":"Rueil-Malmaison","code":"92063","epci_code":"200054781","departement_code":"92","postal_code":"92500"},{"name":"Saint-Cloud","code":"92064","epci_code":"200054781","departement_code":"92","postal_code":"92210"},{"name":"Sceaux","code":"92071","epci_code":"200054781","departement_code":"92","postal_code":"92330"},{"name":"Sèvres","code":"92072","epci_code":"200054781","departement_code":"92","postal_code":"92310"},{"name":"Suresnes","code":"92073","epci_code":"200054781","departement_code":"92","postal_code":"92150"},{"name":"Vanves","code":"92075","epci_code":"200054781","departement_code":"92","postal_code":"92170"},{"name":"Vaucresson","code":"92076","epci_code":"200054781","departement_code":"92","postal_code":"92420"},{"name":"Ville-d’Avray","code":"92077","epci_code":"200054781","departement_code":"92","postal_code":"92410"},{"name":"Villeneuve-la-Garenne","code":"92078","epci_code":"200054781","departement_code":"92","postal_code":"92390"}]
|
1
lib/data/api_geo/communes-93.json
Normal file
1
lib/data/api_geo/communes-93.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"Aubervilliers","code":"93001","epci_code":"200054781","departement_code":"93","postal_code":"93300"},{"name":"Aulnay-sous-Bois","code":"93005","epci_code":"200054781","departement_code":"93","postal_code":"93600"},{"name":"Bagnolet","code":"93006","epci_code":"200054781","departement_code":"93","postal_code":"93170"},{"name":"Le Blanc-Mesnil","code":"93007","epci_code":"200054781","departement_code":"93","postal_code":"93150"},{"name":"Bobigny","code":"93008","epci_code":"200054781","departement_code":"93","postal_code":"93000"},{"name":"Bondy","code":"93010","epci_code":"200054781","departement_code":"93","postal_code":"93140"},{"name":"Le Bourget","code":"93013","epci_code":"200054781","departement_code":"93","postal_code":"93350"},{"name":"Clichy-sous-Bois","code":"93014","epci_code":"200054781","departement_code":"93","postal_code":"93390"},{"name":"Coubron","code":"93015","epci_code":"200054781","departement_code":"93","postal_code":"93470"},{"name":"La Courneuve","code":"93027","epci_code":"200054781","departement_code":"93","postal_code":"93120"},{"name":"Drancy","code":"93029","epci_code":"200054781","departement_code":"93","postal_code":"93700"},{"name":"Dugny","code":"93030","epci_code":"200054781","departement_code":"93","postal_code":"93440"},{"name":"Épinay-sur-Seine","code":"93031","epci_code":"200054781","departement_code":"93","postal_code":"93800"},{"name":"Gagny","code":"93032","epci_code":"200054781","departement_code":"93","postal_code":"93220"},{"name":"Gournay-sur-Marne","code":"93033","epci_code":"200054781","departement_code":"93","postal_code":"93460"},{"name":"L’Île-Saint-Denis","code":"93039","epci_code":"200054781","departement_code":"93","postal_code":"93450"},{"name":"Les Lilas","code":"93045","epci_code":"200054781","departement_code":"93","postal_code":"93260"},{"name":"Livry-Gargan","code":"93046","epci_code":"200054781","departement_code":"93","postal_code":"93190"},{"name":"Montfermeil","code":"93047","epci_code":"200054781","departement_code":"93","postal_code":"93370"},{"name":"Montreuil","code":"93048","epci_code":"200054781","departement_code":"93","postal_code":"93100"},{"name":"Neuilly-Plaisance","code":"93049","epci_code":"200054781","departement_code":"93","postal_code":"93360"},{"name":"Neuilly-sur-Marne","code":"93050","epci_code":"200054781","departement_code":"93","postal_code":"93330"},{"name":"Noisy-le-Grand","code":"93051","epci_code":"200054781","departement_code":"93","postal_code":"93160"},{"name":"Noisy-le-Sec","code":"93053","epci_code":"200054781","departement_code":"93","postal_code":"93130"},{"name":"Pantin","code":"93055","epci_code":"200054781","departement_code":"93","postal_code":"93500"},{"name":"Les Pavillons-sous-Bois","code":"93057","epci_code":"200054781","departement_code":"93","postal_code":"93320"},{"name":"Pierrefitte-sur-Seine","code":"93059","epci_code":"200054781","departement_code":"93","postal_code":"93380"},{"name":"Le Pré-Saint-Gervais","code":"93061","epci_code":"200054781","departement_code":"93","postal_code":"93310"},{"name":"Le Raincy","code":"93062","epci_code":"200054781","departement_code":"93","postal_code":"93340"},{"name":"Romainville","code":"93063","epci_code":"200054781","departement_code":"93","postal_code":"93230"},{"name":"Rosny-sous-Bois","code":"93064","epci_code":"200054781","departement_code":"93","postal_code":"93110"},{"name":"Saint-Denis","code":"93066","epci_code":"200054781","departement_code":"93","postal_code":"93200"},{"name":"Saint-Denis","code":"93066","epci_code":"200054781","departement_code":"93","postal_code":"93210"},{"name":"Saint-Ouen-sur-Seine","code":"93070","epci_code":"200054781","departement_code":"93","postal_code":"93400"},{"name":"Sevran","code":"93071","epci_code":"200054781","departement_code":"93","postal_code":"93270"},{"name":"Stains","code":"93072","epci_code":"200054781","departement_code":"93","postal_code":"93240"},{"name":"Tremblay-en-France","code":"93073","epci_code":"200054781","departement_code":"93","postal_code":"93290"},{"name":"Vaujours","code":"93074","epci_code":"200054781","departement_code":"93","postal_code":"93410"},{"name":"Villemomble","code":"93077","epci_code":"200054781","departement_code":"93","postal_code":"93250"},{"name":"Villepinte","code":"93078","epci_code":"200054781","departement_code":"93","postal_code":"93420"},{"name":"Villetaneuse","code":"93079","epci_code":"200054781","departement_code":"93","postal_code":"93430"}]
|
1
lib/data/api_geo/communes-94.json
Normal file
1
lib/data/api_geo/communes-94.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-95.json
Normal file
1
lib/data/api_geo/communes-95.json
Normal file
File diff suppressed because one or more lines are too long
1
lib/data/api_geo/communes-971.json
Normal file
1
lib/data/api_geo/communes-971.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"Les Abymes","code":"97101","epci_code":"200018653","departement_code":"971","postal_code":"97139"},{"name":"Les Abymes","code":"97101","epci_code":"200018653","departement_code":"971","postal_code":"97142"},{"name":"Anse-Bertrand","code":"97102","epci_code":"200044691","departement_code":"971","postal_code":"97121"},{"name":"Baie-Mahault","code":"97103","epci_code":"200018653","departement_code":"971","postal_code":"97122"},{"name":"Baillif","code":"97104","epci_code":"249710070","departement_code":"971","postal_code":"97123"},{"name":"Basse-Terre","code":"97105","epci_code":"249710070","departement_code":"971","postal_code":"97100"},{"name":"Bouillante","code":"97106","epci_code":"249710070","departement_code":"971","postal_code":"97125"},{"name":"Capesterre-Belle-Eau","code":"97107","epci_code":"249710070","departement_code":"971","postal_code":"97130"},{"name":"Capesterre-de-Marie-Galante","code":"97108","epci_code":"249710047","departement_code":"971","postal_code":"97140"},{"name":"Gourbeyre","code":"97109","epci_code":"249710070","departement_code":"971","postal_code":"97113"},{"name":"La Désirade","code":"97110","epci_code":"200041507","departement_code":"971","postal_code":"97127"},{"name":"Deshaies","code":"97111","epci_code":"249710062","departement_code":"971","postal_code":"97126"},{"name":"Grand-Bourg","code":"97112","epci_code":"249710047","departement_code":"971","postal_code":"97112"},{"name":"Le Gosier","code":"97113","epci_code":"200041507","departement_code":"971","postal_code":"97190"},{"name":"Goyave","code":"97114","epci_code":"249710062","departement_code":"971","postal_code":"97128"},{"name":"Lamentin","code":"97115","epci_code":"249710062","departement_code":"971","postal_code":"97129"},{"name":"Morne-à-l’Eau","code":"97116","epci_code":"200044691","departement_code":"971","postal_code":"97111"},{"name":"Le Moule","code":"97117","epci_code":"200044691","departement_code":"971","postal_code":"97160"},{"name":"Petit-Bourg","code":"97118","epci_code":"249710062","departement_code":"971","postal_code":"97170"},{"name":"Petit-Canal","code":"97119","epci_code":"200044691","departement_code":"971","postal_code":"97131"},{"name":"Pointe-à-Pitre","code":"97120","epci_code":"200018653","departement_code":"971","postal_code":"97110"},{"name":"Pointe-Noire","code":"97121","epci_code":"249710062","departement_code":"971","postal_code":"97116"},{"name":"Port-Louis","code":"97122","epci_code":"200044691","departement_code":"971","postal_code":"97117"},{"name":"Saint-Claude","code":"97124","epci_code":"249710070","departement_code":"971","postal_code":"97120"},{"name":"Saint-François","code":"97125","epci_code":"200041507","departement_code":"971","postal_code":"97118"},{"name":"Saint-Louis","code":"97126","epci_code":"249710047","departement_code":"971","postal_code":"97134"},{"name":"Sainte-Anne","code":"97128","epci_code":"200041507","departement_code":"971","postal_code":"97180"},{"name":"Sainte-Rose","code":"97129","epci_code":"249710062","departement_code":"971","postal_code":"97115"},{"name":"Terre-de-Bas","code":"97130","epci_code":"249710070","departement_code":"971","postal_code":"97136"},{"name":"Terre-de-Haut","code":"97131","epci_code":"249710070","departement_code":"971","postal_code":"97137"},{"name":"Trois-Rivières","code":"97132","epci_code":"249710070","departement_code":"971","postal_code":"97114"},{"name":"Vieux-Fort","code":"97133","epci_code":"249710070","departement_code":"971","postal_code":"97141"},{"name":"Vieux-Habitants","code":"97134","epci_code":"249710070","departement_code":"971","postal_code":"97119"}]
|
1
lib/data/api_geo/communes-972.json
Normal file
1
lib/data/api_geo/communes-972.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"L’Ajoupa-Bouillon","code":"97201","epci_code":"200041788","departement_code":"972","postal_code":"97216"},{"name":"Les Anses-d’Arlet","code":"97202","epci_code":"249720053","departement_code":"972","postal_code":"97217"},{"name":"Basse-Pointe","code":"97203","epci_code":"200041788","departement_code":"972","postal_code":"97218"},{"name":"Le Carbet","code":"97204","epci_code":"200041788","departement_code":"972","postal_code":"97221"},{"name":"Case-Pilote","code":"97205","epci_code":"200041788","departement_code":"972","postal_code":"97222"},{"name":"Le Diamant","code":"97206","epci_code":"249720053","departement_code":"972","postal_code":"97223"},{"name":"Ducos","code":"97207","epci_code":"249720053","departement_code":"972","postal_code":"97224"},{"name":"Fonds-Saint-Denis","code":"97208","epci_code":"200041788","departement_code":"972","postal_code":"97250"},{"name":"Fort-de-France","code":"97209","epci_code":"249720061","departement_code":"972","postal_code":"97200"},{"name":"Fort-de-France","code":"97209","epci_code":"249720061","departement_code":"972","postal_code":"97234"},{"name":"Le François","code":"97210","epci_code":"249720053","departement_code":"972","postal_code":"97240"},{"name":"Grand’Rivière","code":"97211","epci_code":"200041788","departement_code":"972","postal_code":"97218"},{"name":"Gros-Morne","code":"97212","epci_code":"200041788","departement_code":"972","postal_code":"97213"},{"name":"Le Lamentin","code":"97213","epci_code":"249720061","departement_code":"972","postal_code":"97232"},{"name":"Le Lorrain","code":"97214","epci_code":"200041788","departement_code":"972","postal_code":"97214"},{"name":"Macouba","code":"97215","epci_code":"200041788","departement_code":"972","postal_code":"97218"},{"name":"Le Marigot","code":"97216","epci_code":"200041788","departement_code":"972","postal_code":"97225"},{"name":"Le Marin","code":"97217","epci_code":"249720053","departement_code":"972","postal_code":"97290"},{"name":"Le Morne-Rouge","code":"97218","epci_code":"200041788","departement_code":"972","postal_code":"97260"},{"name":"Le Prêcheur","code":"97219","epci_code":"200041788","departement_code":"972","postal_code":"97250"},{"name":"Rivière-Pilote","code":"97220","epci_code":"249720053","departement_code":"972","postal_code":"97211"},{"name":"Rivière-Salée","code":"97221","epci_code":"249720053","departement_code":"972","postal_code":"97215"},{"name":"Le Robert","code":"97222","epci_code":"200041788","departement_code":"972","postal_code":"97231"},{"name":"Saint-Esprit","code":"97223","epci_code":"249720053","departement_code":"972","postal_code":"97270"},{"name":"Saint-Joseph","code":"97224","epci_code":"249720061","departement_code":"972","postal_code":"97212"},{"name":"Saint-Pierre","code":"97225","epci_code":"200041788","departement_code":"972","postal_code":"97250"},{"name":"Sainte-Anne","code":"97226","epci_code":"249720053","departement_code":"972","postal_code":"97227"},{"name":"Sainte-Luce","code":"97227","epci_code":"249720053","departement_code":"972","postal_code":"97228"},{"name":"Sainte-Marie","code":"97228","epci_code":"200041788","departement_code":"972","postal_code":"97230"},{"name":"Schœlcher","code":"97229","epci_code":"249720061","departement_code":"972","postal_code":"97233"},{"name":"La Trinité","code":"97230","epci_code":"200041788","departement_code":"972","postal_code":"97220"},{"name":"Les Trois-Îlets","code":"97231","epci_code":"249720053","departement_code":"972","postal_code":"97229"},{"name":"Le Vauclin","code":"97232","epci_code":"249720053","departement_code":"972","postal_code":"97280"},{"name":"Le Morne-Vert","code":"97233","epci_code":"200041788","departement_code":"972","postal_code":"97226"},{"name":"Bellefontaine","code":"97234","epci_code":"200041788","departement_code":"972","postal_code":"97222"}]
|
1
lib/data/api_geo/communes-973.json
Normal file
1
lib/data/api_geo/communes-973.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"Régina","code":"97301","epci_code":"249730052","departement_code":"973","postal_code":"97353"},{"name":"Régina","code":"97301","epci_code":"249730052","departement_code":"973","postal_code":"97390"},{"name":"Cayenne","code":"97302","epci_code":"249730045","departement_code":"973","postal_code":"97300"},{"name":"Iracoubo","code":"97303","epci_code":"200027548","departement_code":"973","postal_code":"97350"},{"name":"Kourou","code":"97304","epci_code":"200027548","departement_code":"973","postal_code":"97310"},{"name":"Macouria","code":"97305","epci_code":"249730045","departement_code":"973","postal_code":"97355"},{"name":"Mana","code":"97306","epci_code":"249730037","departement_code":"973","postal_code":"97318"},{"name":"Mana","code":"97306","epci_code":"249730037","departement_code":"973","postal_code":"97360"},{"name":"Matoury","code":"97307","epci_code":"249730045","departement_code":"973","postal_code":"97351"},{"name":"Saint-Georges","code":"97308","epci_code":"249730052","departement_code":"973","postal_code":"97313"},{"name":"Remire-Montjoly","code":"97309","epci_code":"249730045","departement_code":"973","postal_code":"97354"},{"name":"Roura","code":"97310","epci_code":"249730045","departement_code":"973","postal_code":"97311"},{"name":"Roura","code":"97310","epci_code":"249730045","departement_code":"973","postal_code":"97352"},{"name":"Saint-Laurent-du-Maroni","code":"97311","epci_code":"249730037","departement_code":"973","postal_code":"97320"},{"name":"Sinnamary","code":"97312","epci_code":"200027548","departement_code":"973","postal_code":"97315"},{"name":"Montsinéry-Tonnegrande","code":"97313","epci_code":"249730045","departement_code":"973","postal_code":"97356"},{"name":"Ouanary","code":"97314","epci_code":"249730052","departement_code":"973","postal_code":"97380"},{"name":"Saül","code":"97352","epci_code":"249730037","departement_code":"973","postal_code":"97314"},{"name":"Maripasoula","code":"97353","epci_code":"249730037","departement_code":"973","postal_code":"97370"},{"name":"Camopi","code":"97356","epci_code":"249730052","departement_code":"973","postal_code":"97330"},{"name":"Grand-Santi","code":"97357","epci_code":"249730037","departement_code":"973","postal_code":"97340"},{"name":"Saint-Élie","code":"97358","epci_code":"200027548","departement_code":"973","postal_code":"97312"},{"name":"Apatou","code":"97360","epci_code":"249730037","departement_code":"973","postal_code":"97317"},{"name":"Awala-Yalimapo","code":"97361","epci_code":"249730037","departement_code":"973","postal_code":"97319"},{"name":"Papaichton","code":"97362","epci_code":"249730037","departement_code":"973","postal_code":"97316"}]
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue