etalab / DVF-app

Exploration des données DVF
https://app.dvf.etalab.gouv.fr
Apache License 2.0
538 stars 100 forks source link

Direct Link passing parameters in the URL #130

Open Roque112 opened 1 year ago

Roque112 commented 1 year ago

Is it possible to open the app https://app.dvf.etalab.gouv.fr/ with a direct link bypassing the scroll menu ?

The URL

https://app.dvf.etalab.gouv.fr/?p1=v1&p2=v2&p3=v3&p4=v4&p5=v5

with the needed parameters (p1,p2,p3,p4,p5)

p1 : Département p2 : Commune p3 : Section cadastrale p4 : Parcelle cadastrale p5 : Date de la mutation (already preloaded in a default value)

Thank you

ghost commented 1 year ago

Here's a repo which may help you regarding your request : https://github.com/Pierreyvon/API_DVF

MetroConductor commented 11 months ago

I propose solving this client-side, by using hashbang URLs. It would also be possible to use virtual client-side routing using the browser history API, but I think this would be confusing to the end user. The implementation I've come up with supports both /#!/180701-230630/75101/AU/0004 and /#!/75101000AU0004, but I'd love to have feedback on either the URL structure or the PR