The new Code Sample Browser takes it to a new level

Far more than just examples – develop applications in no time

The new PTV xServer Code Sample Browser has arrived, with a lot more features and brand new code samples.

CSB_PTVxServerCSB_PTVxServer1

 

Backed by excellent HTML 5 and JavaScript libraries (Bootstrap, Backbone and Codemirror to name a few), the sample browser has a gorgeous look and feel.

 

CSB_PTVxServer2

For instance, you can now create your own samples from a template to quickly test out ideas.

 

 

Our goal was to make the Code Sample Browser even simpler, more useful and more enjoyable, but keep the familiar structure.

You can also use shortcuts to speed up your workflow while changing or creating your own sample. For example you can switch between presentation mode and the normal view mode simply by pressing CTRL + Shift + P or you can save the changes of the sample code by pressing CTRL + S.

CSB_PTVxServer3

PTV xServer 1.17 ships with an extended sample map that also includes Rhode Island / USA. The new code sample browser lets you explore your favorite samples in the American theatre with one click.

 

We are constantly adding new samples for existing and new features. For 1.17, we demonstrate exciting new features such as overnight tours and freight incompatibilities for PTV xTour, and the fully customizable Feature Layers and XML Profiles for PTV xRoute.

Some additional sample variants demonstrate the use of the new Leaflet plugin, a lightweight alternative to PTV xServer add-on AJAX Maps. PTV’s Leaflet plugin requires PTV xMap 1.17 to work.

CSB_PTVxServer4

CSB_PTVxServer5

This time, we are also introducing expert-level samples; these samples demonstrate several features at once, and the associated client code can be quite involved.

The tour animation sample is a graphical goodie. It shows you how tours planned by PTV xTour would be carried out as a graphical animation. Play around with different random start scenarios to see the impact of depot locations. This sample is not heavily optimized, so be careful with the huge scenario.

The bulk request benchmark demonstrates the benefits of the bulk request variants. Should you have any doubt whether bulk requests are worth it, run the sample.

The drag and drop routing sample demonstrates more sophisticated input of your routes. This is a highly interactive use case and the expert level sample does some heavy duty client work.

The Code Sample Browser is included in the PTV xServer bundle, and available at the xserver.ptvgroup.com homepage.

CodeSampleBrowser

Have fun with new Code Sample Browser, make your own code samples or just play with it 🙂 Go to Code Sample Browser

 

[ratings]