Different route calculations between Java-API and Map&Guide

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
fstrahberger
Posts: 9
Joined: Fri Mar 09, 2018 2:17 pm

Different route calculations between Java-API and Map&Guide

Post by fstrahberger »

Hallo,

I am facing a problem in route calculation. The use case is: calculate the route from D-49401 Damme to D-73431 Aalen.

First I calculated a route in PTV Map&Guide Internet using only default values:
- optimization: 50%
- use truck restriction = yes
- speed profile "RF LKW (truck_02-00)"
- route options all zero (only ferries 100, no trains)
- truck: lenght: 16.5, width: 2.55, height: 4, axles: 5, weight per axle: 11.5, total weight: 40000

Using this options PTV Map&Guide Internet calculates a route of 522 km with travel time 8h 27min.

When calculating with the same options using the Java API I get 554 km and a travel time of 8h 4min.

The first difference is at the start of the route. Map&Guide Internet travels directly down from Damme to Bohmte not using the highway A1.
01_mapandguide_highway.gif
The Java-API goes directly to highway A1.
01_java_highway.gif
Why is there such a difference in the route calculation and what could be the difference in the settings?

After setting the optimization to 40% also the Java-API calculates the first part of the route from Damme to Bohmte. But the Java-API then avoids to travel through cities.
02_java_city.gif
while Map&Guide Internet uses cities...
02_mapandguide_city.gif
What could be the cause of the different calculation of the routes?

Thanks in advance! :)

Best Regards,
Florian
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Different route calculations between Java-API and Map&Gu

Post by Bernd Welter »

Hello Florian,

I forwarded your question to some colleagues (PM) b'cause I don't know the exact parameters of MAP&GUIDE Internet.
Could you provide your complete XML request (assuming you use xServer INTERNET for the comparison)?

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:
fstrahberger
Posts: 9
Joined: Fri Mar 09, 2018 2:17 pm

Re: Different route calculations between Java-API and Map&Gu

Post by fstrahberger »

Hallo Bernd,

many thanks for your help.

I don't have xServer INTERNET but a internal Server - I think it should make no difference as the webservice call should be the same.

I'm just trying to get the XML request from the underlying webservice call. But I can't find where to get the Information from... ;)

I will post the XML as soon as I have a way to capture the data :)

Best regards,
Florian
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Different route calculations between Java-API and Map&Gu

Post by Bernd Welter »

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: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Different route calculations between Java-API and Map&Gu

Post by Bernd Welter »

Hello Florian, before we go into deeper analysis I'd like to ensure the following conditions are not causing the issue:

MGI uses HERE data. Which provider do you use for the on premise installation?
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:
fstrahberger
Posts: 9
Joined: Fri Mar 09, 2018 2:17 pm

Re: Different route calculations between Java-API and Map&Gu

Post by fstrahberger »

Hallo Bernd,

yes we have TomTom maps so the routing differences will certainly be from the different map Providers.

Many thanks for this usefull Information :)

Best regards
Florian
Post Reply