Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Last active June 23, 2025 08:50
Show Gist options
  • Save ThomasG77/73d16a03c781419b32b2d83373f2d661 to your computer and use it in GitHub Desktop.
Save ThomasG77/73d16a03c781419b32b2d83373f2d661 to your computer and use it in GitHub Desktop.
Liste des tribunaux judiciaires via site https://cartejudiciaire.fr/

Données récupérées depuis https://cartejudiciaire.fr/

Sûrement possible de reconstituer les périmètres depuis https://www.data.gouv.fr/fr/datasets/liste-des-juridictions-competentes-pour-les-communes-de-france/ mais cela aurait été laborieux...

wget https://cartejudiciaire.fr/resultats/2025/cartes/tj_population.html
grep 'geo_json_8b7d5198a511cd18e16301b3ef38921c_add({"bbox": ' tj_population.html | sed 's#);##g' | sed 's#            geo_json_8b7d5198a511cd18e16301b3ef38921c_add(##g' | jq '.features | map(del(.properties."Population du ressort (en milliers d‘habitants)", .properties."__folium_color"))' | jq '{"type": "FeatureCollection","features": .}' >| tj-2025.geojson
``
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment