BCR Converter compatibility: xRoute 2?

PTV's mobile solution based on off-line maps - standard application and SDK
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2589
Joined: Mon Apr 14, 2014 10:28 am
Contact:

BCR Converter compatibility: xRoute 2?

Post by Bernd Welter »

Hello Christa,

do we have a sample for the BCR CONVERSION from xRoute 2 to BCR?
I was asked by a customer whether the BCR Converter is compatible with the upcoming interfaces.

Best regards,
Bernd
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:
Christa Brand

Re: BCR Converter compatibility: xRoute 2?

Post by Christa Brand »

Hi Bernd

good point! to my knowledge we don´t have a sample so far, I´ll have to check and will get back to you in a few days!
Bee
Posts: 10
Joined: Thu May 04, 2017 8:43 am

Re: BCR Converter compatibility: xRoute 2?

Post by Bee »

Hi,

are there any news?

Best regards,
Eike
Christa Brand

Re: BCR Converter compatibility: xRoute 2?

Post by Christa Brand »

Hi & sorry for the answering delay,

I just received confirmation that - while there is no compatibility with xRoute2 yet - our colleagues from the xServer Team intend to offer this feature, ideally in an improved version that´s easier and quicker to Access, in the future :-)

As the details of the implementation are currently being investigated, I don´t think well be able to estimate a release date yet, sorry.

Kind regards,
Christa
User avatar
Bernd Welter
Site Admin
Posts: 2589
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: BCR Converter compatibility: xRoute 2?

Post by Bernd Welter »

Hi there,

in the meantime xRoute 2 offers to return the BCR as direct output from the route response:
Comparison between xRoute1 and xRoute2
Comparison between xRoute1 and xRoute2
But: please be aware that this feature is experimental so far, i.e. there might be changes in the API (renaming, change of type, even removing).

Best regards,
Bernd
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:
User avatar
Bernd Welter
Site Admin
Posts: 2589
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: BCR Converter compatibility: xRoute 2?

Post by Bernd Welter »

Here's a sample xRoute2 request that consumes the built-in guided navigation

Code: Select all

{
  "waypoints": [
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.22029,
          "y": 49.61513
        }
      }
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 6.06479,
          "y": 49.62127
        }
      }
    }
  ],
  "resultFields": {
    "eventTypes": [
      "MANEUVER_EVENT"
    ],
    "guidedNavigationRoute": true
  }
}
The response is encoded as BASE64 so you need to decode it on clientside, e.g. in C#:

Code: Select all

Encoding.UTF8.GetString(routeResponse.guidedNavigationRoute)
Attachments
Sample output in my C# demo client
Sample output in my C# demo client
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:
Post Reply