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 ?)
Web and mobile routing with BCR files.
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Web and mobile routing with BCR files.
Hello Marek,
I recommend to check the Navigator subforum:
http://xserver.ptvgroup.com/forum/viewforum.php?f=49
We provide a documentation of how to specify the content of a BCR file (http://xserver.ptvgroup.com/forum/viewt ... f=49&t=449) but as you already recognized:
We do not offer various libraries for different programming stacks dealing with the same process of creating a file.
Currently there is the BCR converter for JAVA and one of my members created a JavaScript sample for the code sample browser.
Programmers using another environment must build their own "converter" based on the documentation.
Anyway: I'll draw the attention of our product management to this topic as this might have strategic weight.
Best regards,
Bernd
PS: I'll also move the post to the NAVIGATOR forum as this is the best matching category from my perspective.
I recommend to check the Navigator subforum:
http://xserver.ptvgroup.com/forum/viewforum.php?f=49
We provide a documentation of how to specify the content of a BCR file (http://xserver.ptvgroup.com/forum/viewt ... f=49&t=449) but as you already recognized:
We do not offer various libraries for different programming stacks dealing with the same process of creating a file.
Currently there is the BCR converter for JAVA and one of my members created a JavaScript sample for the code sample browser.
Programmers using another environment must build their own "converter" based on the documentation.
Anyway: I'll draw the attention of our product management to this topic as this might have strategic weight.
Best regards,
Bernd
PS: I'll also move the post to the NAVIGATOR forum as this is the best matching category from my perspective.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Re: Web and mobile routing with BCR files.
Thank You for a quick response.
Could You please provide a link to the JavaScript sample You have mentioned?
I would like also to do some simple tests using the Java BCRConverter, and I have a question: where can I find the xRoute client bundle libraries for Java? (I am trying to follow these instructions: http://xserver.ptvgroup.com/fileadmin/f ... ithbcr.htm)
Could You please provide a link to the JavaScript sample You have mentioned?
I would like also to do some simple tests using the Java BCRConverter, and I have a question: where can I find the xRoute client bundle libraries for Java? (I am trying to follow these instructions: http://xserver.ptvgroup.com/fileadmin/f ... ithbcr.htm)
Re: Web and mobile routing with BCR files.
Hello,
please find attached the desired code sample.
You can copy it into the code sample browser and execute it there.
The sample shows the content of an bcr file for a route that is planned with the xroute Server.
Best regards,
Lars
please find attached the desired code sample.
You can copy it into the code sample browser and execute it there.
The sample shows the content of an bcr file for a route that is planned with the xroute Server.
Best regards,
Lars
Lars Moritz
Technical Consultant
PTV GROUP, Germany
Technical Consultant
PTV GROUP, Germany
Re: Web and mobile routing with BCR files.
Thank You!