insee_number_translator/README.md

32 lines
1,000 B
Markdown
Raw Normal View History

2019-07-11 00:03:31 +02:00
# INSEE number translator
Extract data from INSEE number (France)
2021-08-06 15:37:45 +02:00
## Getting started
2021-08-19 11:43:39 +02:00
### Using a pre-built binary
Go to the [latest release](https://git.augendre.info/gaugendre/insee_number_translator/releases/latest)
and download the binary matching your OS and architecture.
Then, run the tool via the command line:
```shell
./insee 269059913116714 168127982980507 299122A00498723 299129742398791 144089943287340
```
2021-08-18 19:01:17 +02:00
### From sources
#### Run
2021-08-06 16:03:24 +02:00
```shell
go run . 269059913116714 168127982980507 299122A00498723 299129742398791 144089943287340
2021-08-06 16:03:24 +02:00
```
2021-08-06 15:37:45 +02:00
2021-08-18 19:01:17 +02:00
#### Build & install
2021-08-06 15:37:45 +02:00
```shell
2021-08-18 19:01:17 +02:00
go install
insee_number_translator 269059913116714 168127982980507 299122A00498723 299129742398791 144089943287340
2021-08-06 15:37:45 +02:00
```
2019-07-11 00:03:31 +02:00
## Data sources
2021-08-06 16:03:24 +02:00
* cities : https://public.opendatasoft.com/explore/dataset/correspondance-code-insee-code-postal/export/
* countries : https://www.insee.fr/fr/information/2028273
* departments : https://www.data.gouv.fr/fr/datasets/regions-departements-villes-et-villages-de-france-et-doutre-mer/