Contents

API Playground

Adastra Toll API Playground

The Adastra Toll API playground is a web-based platform that allows you to test and experiment with the API in real-time. This tool provides a convenient way to explore the API’s features, understand its functionality, and validate your integration.

Overview

The playground offers the following key features:

  • Interactive Interface: A user-friendly interface to input API parameters and view responses.
  • Real-time Testing: Send requests to the API and receive responses instantly.
  • Toll Calculation Support: A section to test the Toll Calculation endpoint.
  • Report API (Coming Soon): A section to test the Reporting endpoint (currently under development).
  • Maps Visualization: Displays a map with the selected route.
  • Code Snippets: Shows the corresponding code snippet for the API request.

Toll Calculation Playground

The Toll Calculation section includes the following elements:

  1. Start and End Location Inputs: Two input fields to search for or enter latitude and longitude coordinates.
    • You can either enter coordinates manually or search for locations.
  2. Route Options:
    • Checkboxes to avoid tolls, highways, and ferries.
  3. Date Selection:
    • A date picker to select the departure date and time.
  4. Expand Tolls Data: * A checkbox to include expanded toll data in the response.
  5. Vehicle Type Selection:
    • A dropdown menu to select the vehicle type for calculation.
      • The options are the same as the vehicleTypeId parameter (1st class vehicles, 2nd class vehicles etc.)
  6. Language Selection: * A dropdown menu to select the language for the response.
    • The options are the same as the lang parameter (en, tr ).
  7. Map Source Selection: * A dropdown menu to select the map source for route calculation.
    • The options are the same as the mapsource parameter (google, tomtomv1, tomtomv2).
  8. Clean Button:
    • A button to clear the input parameters
  9. Search Button:
    • A button to send the request to the Toll Calculation endpoint with the specified parameters.
  10. Map Visualization:
    • A map area to visualize the route on the map.
  11. API Request and Response Display: * A display area to show the request sent to the API and the response received.

Note: The Toll Calculation playground is fully functional. You can experiment with all available options and see the results instantly.

Report API Playground (Coming Soon)

The Report API playground is currently under development and will be available soon. It will offer a similar interactive interface for testing the Reporting endpoint.

Access the Playground

You can access the Adastra Toll API playground at https://api-playground.adastrai.com/

Please Note: This playground is intended for testing and exploration purposes. Performance and stability may vary. Please be aware of rate limiting and other usage considerations.