paul-carteron / happign

Happign allows you to use the APIs provided by the IGN (France) to download their public data.
https://paul-carteron.github.io/happign/
GNU General Public License v3.0
27 stars 3 forks source link

Route planner service #16

Closed paul-carteron closed 1 month ago

paul-carteron commented 10 months ago

Implement route planner service from IGN for isodist and isochron : https://geoservices.ign.fr/services-web-experts-calcul

paul-carteron commented 9 months ago

@sylvaine31 has already developed a function for isochrone. She contacted me to add it to happign. This will be done in the next version.

paul-carteron commented 7 months ago

Hi @sylvaine31,

La fonction get_iso est implémentée dans la version en développement d'happign (install_github("paul-carteron/happign")) ! J'ai également implémenté deux fonction wrapper get_isodistance et get_isochrone. Pour le moment le paramètre constraint n'ai pas utilisable.

Si vous avez le temps de les tester avec vos cas d'études ce serait super !

PS : Bien vu pour le vectorisation de la fonction permettant de prendre plusieurs points en entrée !

sylvaine31 commented 1 month ago

Hi Paul, I saw you removed the get_iso function. Perhaps you had problem with the function ? The function I create did not function anymore since the geoplateforme migration. I fixed it using the bdtopo-pgr resource instead of bdtopo-iso which is broken on the new plateform. Hope that help !

Sylvaine

paul-carteron commented 1 month ago

Hi Sylvaine, Exactly ! The function doesn't work anymore with the Geoplateforme, if you have a working one, i'll be glad to add it in the next release.

sylvaine31 commented 1 month ago

I think just change the resourcedefault argument to bdtopo-pgr should do the trick

sylvaine31 commented 1 month ago

and of course change the api adress to "https://data.geopf.fr/navigation/isochrone?"

paul-carteron commented 1 month ago

It's now implemented in development version. I also add valhalla as new source. Thanks !