An awesome toy for PTV xTour starters: The new code samples

Dear customers,

today I would like to to draw your attention to a rework and extension of our

Test & DiscoverCode Sample Browser

We made a layout change, implementing a navigation menu with the entries sample, code and description at the bottom of the samples’ tabs.

Next to this we added two new code samples:

PTV xTour ServerBasic and advanced tour planning
with PTV xTour 1.16
(Beta)

The simple to use graphic interface of the tour planning samples offers the following possibilities:

  • Generate randomly a sample depot and orders for the tour planning.
  • Make small experiments
    • with stop and vehicle parameters.
    •  with restrictions and algorithm parameters (advanced sample).
  •  Watch the planning results directly in the map.
  • Take a detailed look on the results in the tour tables (advanced sample).
  • And, of course, get direct access to the code in the editor.

However, of course this is not the last step belonging to the Code Sample Browser. The tool is always in motion through a continuing development making small usability improvements as well as integrating new code samples and implemeting new ideas.

Observing the Code Sample Browser from time to time you would find smaller or bigger changes we hope you’ll enjoy.

[ratings]

PTV xServer Web App Demo A-to-B Routing



         
     

PTV xServer Web App Demo: Simple a-to-b Routing

A

B

Press Enter to lookup addresses and route.


Test this example now!

[ratings]

Updated JSON API

[Edit: 30.10.2012: Check the post PTV xServer Web App Demo A-to-B Routing – a demonstration of the benefits of JSON with a concrete example]

We’ve updated the Code Sample Browser with a preview of the PTV xServers 1.16. Therefore the JSON API has slightly been changed. Here’s a brief update on the information we provided in the blog article of July 2012.

The PTV xServer add-on AJAX Maps API did not change. The information we provided is still up to date. What has changed are the scripts, constructors and method calls for xRoute and xLocate. To include xRoute and xLocate in your HTML-page, these lines must be provided:

<!--xRoute JSON -->
<script type="text/javascript" src="/xroute/xroute-client.js">
</script>
<!--xLocate JSON -->
<script type="text/javascript" src="/xlocate/xlocate-client.js">
</script>

The constructor calls now look like this:

var xroute = new XRouteClient();
var xlocate = new XLocateClient();

The method signatures also changed a little bit. Asynchronous calls do not need the ‘Async’ suffix anymore. We just moved the callback handler to the last position in the method call and made it optional. So if a callback handler is provided the method will be executed in asynchronous mode. Here is an example for this:

xroute.calculateRoute(waypoints, null, null, rlo, cc, 
routeCalculated);

We highly recommend to use the asynchronous mode only.

 

That’s all! Give it a try in the Code Sample Browser!

 

The completely new way of discovering PTV xServers

Gallery

This gallery contains 4 photos.

[Edit: 27.9.2012: Updated JSON API blog article]

(The following article refers to the Code Sample Browser on the 
Developer Zone website and was provided by Matthias David, developer 
Logistics Components Server. Thank you!)

Overview

 

With the code sample browser, PTV has created a new way of discovering PTV xServers.… Read more

Presentation of yesterday’s webinar “High-performance PTV AJAX Maps”

Thanks to Andreas Junghans and Bernd Welter. It was again a magnificent session!

The Presentation and samples are now available for download  (section “xRadio Webinars / Documents & Samples / PTV xServer only”). If you want to access documents and samples of past sessions, you need to be a registered PTV Developer Zone Forum user and logged in.

Presentation of PTV xMapMatch Server webinar

Many thanks to Joost Claessen (PTV NL) and Bernd Welter for yesterday’s moderation!

The Presentation and samples are now available for download  (section “xRadio Webinars / Documents & Samples / PTV xServer only”). If you want to access documents and samples of past sessions, you need to be a registered PTV Developer Zone Forum user and logged in.