Page 1 of 1

Different route calculations between Java-API and Map&Guide

Posted: Wed Apr 18, 2018 9:30 am
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

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

Posted: Wed Apr 18, 2018 9:55 am
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

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

Posted: Wed Apr 18, 2018 11:06 am
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

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

Posted: Wed Apr 18, 2018 11:09 am
by Bernd Welter

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

Posted: Wed Apr 18, 2018 11:16 am
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?

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

Posted: Wed Apr 18, 2018 1:36 pm
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