Skip to content

add location info#256

Merged
MateoLostanlen merged 1 commit intomainfrom
add_location_infos
Aug 4, 2025
Merged

add location info#256
MateoLostanlen merged 1 commit intomainfrom
add_location_infos

Conversation

@MateoLostanlen
Copy link
Member

At the request of firefighters, we have added API calls to automatically retrieve location details based on triangulated coordinates. This includes identifying the city and, when available, the corresponding ONF forest parcel number

The get_location_info(lat, lon) function first performs reverse geocoding using OpenStreetMap’s Nominatim service to extract administrative information such as the city, country, and country code. If the location is in France, the function then queries the national forest parcel database (hosted by IGN) to check whether the point intersects with a public forest parcel managed by the ONF. If so, it returns the full parcel attributes

@MateoLostanlen MateoLostanlen merged commit f6fd662 into main Aug 4, 2025
5 of 6 checks passed
@MateoLostanlen MateoLostanlen deleted the add_location_infos branch August 4, 2025 10:52
@MateoLostanlen MateoLostanlen mentioned this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant