Récupération geolocalisation EHPAD 57
This example visualizes the geographic distribution of EHPAD (nursing homes) in the Moselle department (57) of France, displaying each facility as a point on a map. The data is retrieved from a public government API and converted to GeoJSON format using `jq` command-line tools for filtering and restructuring. The visualization is built with the Vue framework, rendering the geographic points to show facility locations, with additional property information such as name, city, and legal status included for reference. The map uses standard GeoJSON `Point` features to represent each facility's coordinates.
AI-generated descriptionRécupération geolocalisation EHPAD 57
Depuis le site https://www.pour-les-personnes-agees.gouv.fr/annuaire-ehpad-et-comparateur-de-prix-et-restes-a-charge/moselle-57, on a retrouvé la référence à l'API pour récupérer la donnée pour ce cas particulier
wget -O ehpad-57.json https://www.pour-les-personnes-agees.gouv.fr/api/v1/annuaire/heb?dept_numero=57
jq '.[].item | {"type": "Feature","properties": {"title": .title, "noFinesset": .noFinesset, "legal_staus": .legal_status, "postcode": .coordinates.postcode, "street": .coordinates.street, "codeinsee": .coordinates.codeinsee, "city": .coordinates.city}, "geometry": {"coordinates": [(.coordinates.longitude|tonumber), (.coordinates.latitude|tonumber)], "type": "Point"}}' ehpad-57.json | jq --slurp '{"type": "FeatureCollection", "features": .}' >| ehpad-57.geojson
``