Skip to content

Alexandre-BARBIER/IsolatedLocations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find isolated properties in France

As this is a Prototype, a few parameters are for now hard coded in the program

  • The department (in this case department 45, Loiret) on line 39
  • The neighboring departments, defined on line 42
  • The driven time defined on line 77 in seconds
  • The origin point defined on line 76
  • The distance to closest neighbor defined on line 87 in kilometers

Goal of this project

Using cadastre databases' data, find all habitations that are further than 300 meters from their closest neightbor. Only keep locations that are less than a certain T driving time away from a point V.

How to run

Clone the repository and open a terminal in the folder

Add data from cadastre in ./data downloading it from https://adresse.data.gouv.fr/data/adresses-cadastre/latest/csv

Run the following commands

python3 -m venv venv
source venv/bin/activate   
pip install -r requirements.txt

If you have a HERE API key with access to Isoline routing

  • Add the key on line 15 of PrototypeLoiret.py

If you do not have a HERE API key

  • Change the value of USE_HERE to False on line 20 of PrototypeLoiret.py
  • This will disable the driving time test, but this is the only solution with no API key.

Run the following command

python3 PrototypeLoiret.py

Create an executable

On windows with PyInstaller:

pyinstaller -F --hidden-import="sklearn.utils._typedefs" --hidden-import="sklearn.neighbors._partition_nodes" --onefile PrototypeLoiret.py

About

Find Isolated Locations in France

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages