Page 1 of 1

Web and mobile routing with BCR files.

Posted: Tue Jun 27, 2017 11:04 am
by mmazur
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 ?)

Re: Web and mobile routing with BCR files.

Posted: Tue Jun 27, 2017 11:16 am
by Bernd Welter
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.

Re: Web and mobile routing with BCR files.

Posted: Tue Jun 27, 2017 11:54 am
by mmazur
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)

Re: Web and mobile routing with BCR files.

Posted: Wed Jun 28, 2017 7:31 am
by LNM_PTV
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.
GuidedNavigation.zip
GuidedNavigationBCRSample
(5.21 KiB) Downloaded 481 times
Best regards,
Lars

Re: Web and mobile routing with BCR files.

Posted: Wed Jun 28, 2017 10:34 am
by mmazur
Thank You!