Web and mobile routing with BCR files.
Posted: Tue Jun 27, 2017 11:04 am
Hello
We are creating a system that consists of two client applications:
1. Web application
2. Mobile application
In the web app user should be able to create a route with waypoints, and truck attributes.
If the route is completed we would like to save it for future use and send it to mobile application.
The mobile device with this app will be installed in vehicle so that the driver can utilize it.
We would like this route to be identical in web app and mobile app.
From what we have experimented so far :
We have a simple script that talks with PTV XRoute API. Its based on those examples (JS, Leaflet, Leaflet Routing Machine):
- https://github.com/ptv-logistics/xserve ... 1/index.js
- http://176.95.37.46/samplebrowser/#samp ... layer/view
Also we have a mobile application (based on ptvNavigator-inelo-release-1000107.apk) that from what we checked so far accepts only BCR files for routes.
Now the only tool we found for BCR files is PTV xRoute Server BCR Converter (http://xserver.ptvgroup.com/en-uk/devel ... v-xserver/)
So the question is : What is the proper way of implementing this kind of scenario?
Is there some way of generating BCR file in client web app ? Or do we need some serverside service (JSP?) to get the route and convert it (but then how to display it in JS ?)
We are creating a system that consists of two client applications:
1. Web application
2. Mobile application
In the web app user should be able to create a route with waypoints, and truck attributes.
If the route is completed we would like to save it for future use and send it to mobile application.
The mobile device with this app will be installed in vehicle so that the driver can utilize it.
We would like this route to be identical in web app and mobile app.
From what we have experimented so far :
We have a simple script that talks with PTV XRoute API. Its based on those examples (JS, Leaflet, Leaflet Routing Machine):
- https://github.com/ptv-logistics/xserve ... 1/index.js
- http://176.95.37.46/samplebrowser/#samp ... layer/view
Also we have a mobile application (based on ptvNavigator-inelo-release-1000107.apk) that from what we checked so far accepts only BCR files for routes.
Now the only tool we found for BCR files is PTV xRoute Server BCR Converter (http://xserver.ptvgroup.com/en-uk/devel ... v-xserver/)
So the question is : What is the proper way of implementing this kind of scenario?
Is there some way of generating BCR file in client web app ? Or do we need some serverside service (JSP?) to get the route and convert it (but then how to display it in JS ?)