PTV Drive&Arrive | API Guide > Codesamples and Tools > Codesamples C#

Codesamples C#

This code samples demonstrates how to connect to PTV Drive&Arrive. It creates a simple tour and receives the corresponding SCEMIDs. Then, it subscribes to notification for the given set of SCEMIDs. By simulating positioning events, it receives ETA changes.

Important note: You may not use this example in a production environment. This example is only for demonstration purpose.

Important changes: Now we have refactored the codesample using the new AutoRest pre-generated C# API clients based on the PTV Drive&Arrive OpenAPI spec.

You can download our code sample here: CSharpCodeSample.zip

 

 

© 2022 PTV Planung Transport Verkehr GmbH | Imprint

Get in Contact