Hi and thanks for the answer,
Firstly, I apologize for not being clear enough as to what was necessary.
In second place, I will try to be as clear as I can.
I’m working on a project where I have to improve the “how to find us” section for a website.
Due to the fact that this section has to be simple to understand even for elderly people and people with low knowledge of web surfing , I thought that placing an HTML’s iframe within the ORS map and below some buttons to interact with that map would be the perfect solution.
I made all of these buttons but the only one that is missing is the one where the user clicks and automatically the ORS calculate a route from the user’s position to an endpoint or from the place the user choose in input to the endpoint.
So, the 2 solutions I think that can be useful are:
- To access to the user’s position and automatically set the route to that position to the endpoint
- Setting a form input where the user writes where he/she wants to start the route and then ORS calculate the route to the endpoint
In these 2 solutions I do not want that the user has to interact directly with the map but only with a button I create specifically.
The point is: how can I build one of these solutions? I prefer the first one, but even the second one is good.
Is there an API useful for that?
Do I need a specific JS library for these solution like Leaflet or others?
Thanks for your support
I hope that this time I was clear enough