Web and mobile routing with BCR files.

PTV's mobile solution based on off-line maps - standard application and SDK
Post Reply
mmazur
Posts: 3
Joined: Mon Jun 26, 2017 2:41 pm

Web and mobile routing with BCR files.

Post 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 ?)
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Web and mobile routing with BCR files.

Post 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.
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... :twisted:
mmazur
Posts: 3
Joined: Mon Jun 26, 2017 2:41 pm

Re: Web and mobile routing with BCR files.

Post 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)
LNM_PTV
Posts: 14
Joined: Mon Apr 18, 2016 12:25 pm

Re: Web and mobile routing with BCR files.

Post 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 479 times
Best regards,
Lars
Lars Moritz
Technical Consultant
PTV GROUP, Germany
mmazur
Posts: 3
Joined: Mon Jun 26, 2017 2:41 pm

Re: Web and mobile routing with BCR files.

Post by mmazur »

Thank You!
Post Reply