Router Wrapper API

Capability

capability

Capability of current api

Capability of current api Return capability of all operations. For each operation, it will return availables modes (car, truck, public_transport...) and availables options for those modes.


/0.1/capability

Usage and SDK Samples

curl -X get "https://router.mapotempo.com/0.1/capability"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CapabilityApi;

import java.io.File;
import java.util.*;

public class CapabilityApiExample {

    public static void main(String[] args) {
        
        CapabilityApi apiInstance = new CapabilityApi();
        try {
            ServicesDesc result = apiInstance.capability();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilityApi#capability");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CapabilityApi;

public class CapabilityApiExample {

    public static void main(String[] args) {
        CapabilityApi apiInstance = new CapabilityApi();
        try {
            ServicesDesc result = apiInstance.capability();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilityApi#capability");
            e.printStackTrace();
        }
    }
}

CapabilityApi *apiInstance = [[CapabilityApi alloc] init];

// Capability of current api
[apiInstance capabilityWithCompletionHandler: 
              ^(ServicesDesc output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.CapabilityApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.capability(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class capabilityExample
    {
        public void main()
        {
            
            var apiInstance = new CapabilityApi();

            try
            {
                // Capability of current api
                ServicesDesc result = apiInstance.capability();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CapabilityApi.capability: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CapabilityApi();

try {
    $result = $api_instance->capability();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CapabilityApi->capability: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CapabilityApi;

my $api_instance = WWW::SwaggerClient::CapabilityApi->new();

eval { 
    my $result = $api_instance->capability();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CapabilityApi->capability: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CapabilityApi()

try: 
    # Capability of current api
    api_response = api_instance.capability()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapabilityApi->capability: %s\n" % e)

Parameters

Responses

Status: 200 - Capability of current api


Isoline

isoline

Isoline from a start point

Isoline from a start point Build isoline from a point with defined size depending of transportation mode, dimension, etc... Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time, see capability operation for informations).


/0.1/isoline

Usage and SDK Samples

curl -X get "https://router.mapotempo.com/0.1/isoline?mode=&dimension=&departure=&speed_multiplier=&speed_multiplicator=&track=&motorway=&toll=&trailers=&weight=&weight_per_axle=&height=&width=&length=&hazardous_goods=&max_walk_distance=&approach=&snap=&strict_restriction=&lang=&size="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IsolineApi;

import java.io.File;
import java.util.*;

public class IsolineApiExample {

    public static void main(String[] args) {
        
        IsolineApi apiInstance = new IsolineApi();
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        Integer size = 56; // Integer | Size of isoline. Time in second, distance in meters.
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        try {
            IsolineResult result = apiInstance.isoline(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IsolineApi#isoline");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IsolineApi;

public class IsolineApiExample {

    public static void main(String[] args) {
        IsolineApi apiInstance = new IsolineApi();
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        Integer size = 56; // Integer | Size of isoline. Time in second, distance in meters.
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        try {
            IsolineResult result = apiInstance.isoline(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IsolineApi#isoline");
            e.printStackTrace();
        }
    }
}
array[Float] *loc = ; // Start latitude and longitude separated with a comma, e.g. lat1,lng1.
Integer *size = 56; // Size of isoline. Time in second, distance in meters.
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute isochrone or isodistance (default on time.) (optional) (default to time)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (currently not used). (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)

IsolineApi *apiInstance = [[IsolineApi alloc] init];

// Isoline from a start point
[apiInstance isolineWith:loc
    size:size
    mode:mode
    dimension:dimension
    departure:departure
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
              completionHandler: ^(IsolineResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.IsolineApi()

var loc = ; // {array[Float]} Start latitude and longitude separated with a comma, e.g. lat1,lng1.

var size = 56; // {Integer} Size of isoline. Time in second, distance in meters.

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute isochrone or isodistance (default on time.)
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (currently not used).
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.isoline(loc, size, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class isolineExample
    {
        public void main()
        {
            
            var apiInstance = new IsolineApi();
            var loc = new array[Float](); // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
            var size = 56;  // Integer | Size of isoline. Time in second, distance in meters.
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute isochrone or isodistance (default on time.) (optional)  (default to time)
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (currently not used). (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)

            try
            {
                // Isoline from a start point
                IsolineResult result = apiInstance.isoline(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IsolineApi.isoline: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\IsolineApi();
$loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
$size = 56; // Integer | Size of isoline. Time in second, distance in meters.
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 

try {
    $result = $api_instance->isoline($loc, $size, $mode, $dimension, $departure, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $approach, $snap, $strictRestriction, $lang);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IsolineApi->isoline: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IsolineApi;

my $api_instance = WWW::SwaggerClient::IsolineApi->new();
my $loc = []; # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
my $size = 56; # Integer | Size of isoline. Time in second, distance in meters.
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute isochrone or isodistance (default on time.)
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (currently not used).
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 

eval { 
    my $result = $api_instance->isoline(loc => $loc, size => $size, mode => $mode, dimension => $dimension, departure => $departure, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IsolineApi->isoline: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.IsolineApi()
loc =  # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
size = 56 # Integer | Size of isoline. Time in second, distance in meters.
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute isochrone or isodistance (default on time.) (optional) (default to time)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (currently not used). (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)

try: 
    # Isoline from a start point
    api_response = api_instance.isoline(loc, size, mode=mode, dimension=dimension, departure=departure, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IsolineApi->isoline: %s\n" % e)

Parameters

Form parameters
Name Description
speed_multiplier_area
speed_multiplicator_area
loc*
Query parameters
Name Description
mode
dimension
departure
speed_multiplier
speed_multiplicator
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
approach
snap
strict_restriction
lang
size*

Responses

Status: 200 - Isoline from a start point


isolinePost

Isoline from a start point

Isoline from a start point Build isoline from a point with defined size depending of transportation mode, dimension, etc... Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time, see capability operation for informations).


/0.1/isoline

Usage and SDK Samples

curl -X post "https://router.mapotempo.com/0.1/isoline"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IsolineApi;

import java.io.File;
import java.util.*;

public class IsolineApiExample {

    public static void main(String[] args) {
        
        IsolineApi apiInstance = new IsolineApi();
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        Integer size = 56; // Integer | Size of isoline. Time in second, distance in meters.
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        try {
            IsolineResult result = apiInstance.isolinePost(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IsolineApi#isolinePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IsolineApi;

public class IsolineApiExample {

    public static void main(String[] args) {
        IsolineApi apiInstance = new IsolineApi();
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        Integer size = 56; // Integer | Size of isoline. Time in second, distance in meters.
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        try {
            IsolineResult result = apiInstance.isolinePost(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IsolineApi#isolinePost");
            e.printStackTrace();
        }
    }
}
array[Float] *loc = ; // Start latitude and longitude separated with a comma, e.g. lat1,lng1.
Integer *size = 56; // Size of isoline. Time in second, distance in meters.
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute isochrone or isodistance (default on time.) (optional) (default to time)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (currently not used). (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)

IsolineApi *apiInstance = [[IsolineApi alloc] init];

// Isoline from a start point
[apiInstance isolinePostWith:loc
    size:size
    mode:mode
    dimension:dimension
    departure:departure
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
              completionHandler: ^(IsolineResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.IsolineApi()

var loc = ; // {array[Float]} Start latitude and longitude separated with a comma, e.g. lat1,lng1.

var size = 56; // {Integer} Size of isoline. Time in second, distance in meters.

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute isochrone or isodistance (default on time.)
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (currently not used).
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.isolinePost(loc, size, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class isolinePostExample
    {
        public void main()
        {
            
            var apiInstance = new IsolineApi();
            var loc = new array[Float](); // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
            var size = 56;  // Integer | Size of isoline. Time in second, distance in meters.
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute isochrone or isodistance (default on time.) (optional)  (default to time)
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (currently not used). (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)

            try
            {
                // Isoline from a start point
                IsolineResult result = apiInstance.isolinePost(loc, size, mode, dimension, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IsolineApi.isolinePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\IsolineApi();
$loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
$size = 56; // Integer | Size of isoline. Time in second, distance in meters.
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute isochrone or isodistance (default on time.)
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 

try {
    $result = $api_instance->isolinePost($loc, $size, $mode, $dimension, $departure, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $approach, $snap, $strictRestriction, $lang);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IsolineApi->isolinePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IsolineApi;

my $api_instance = WWW::SwaggerClient::IsolineApi->new();
my $loc = []; # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
my $size = 56; # Integer | Size of isoline. Time in second, distance in meters.
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute isochrone or isodistance (default on time.)
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (currently not used).
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 

eval { 
    my $result = $api_instance->isolinePost(loc => $loc, size => $size, mode => $mode, dimension => $dimension, departure => $departure, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IsolineApi->isolinePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.IsolineApi()
loc =  # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
size = 56 # Integer | Size of isoline. Time in second, distance in meters.
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute isochrone or isodistance (default on time.) (optional) (default to time)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (currently not used). (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)

try: 
    # Isoline from a start point
    api_response = api_instance.isolinePost(loc, size, mode=mode, dimension=dimension, departure=departure, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IsolineApi->isolinePost: %s\n" % e)

Parameters

Form parameters
Name Description
mode
dimension
departure
speed_multiplier
speed_multiplicator
speed_multiplier_area
speed_multiplicator_area
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
approach
snap
strict_restriction
lang
loc*
size*

Responses

Status: 201 - Isoline from a start point


Matrix

matrix

Rectangular matrix between two points set

Rectangular matrix between two points set Build time/distance matrix between several points depending of transportation mode, dimension, etc... Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time, see capability operation for informations).


/0.1/matrix

Usage and SDK Samples

curl -X get "https://router.mapotempo.com/0.1/matrix?mode=&dimension=&traffic=&departure=&speed_multiplier=&speed_multiplicator=&track=&motorway=&toll=&trailers=&weight=&weight_per_axle=&height=&width=&length=&hazardous_goods=&max_walk_distance=&approach=&snap=&strict_restriction=&lang="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MatrixApi;

import java.io.File;
import java.util.*;

public class MatrixApiExample {

    public static void main(String[] args) {
        
        MatrixApi apiInstance = new MatrixApi();
        array[Float] src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        array[Float] dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
        try {
            MatrixResult result = apiInstance.matrix(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatrixApi#matrix");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MatrixApi;

public class MatrixApiExample {

    public static void main(String[] args) {
        MatrixApi apiInstance = new MatrixApi();
        array[Float] src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        array[Float] dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
        try {
            MatrixResult result = apiInstance.matrix(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatrixApi#matrix");
            e.printStackTrace();
        }
    }
}
array[Float] *src = ; // List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute fastest or shortest and the optional additional dimension (default on time.) (optional) (default to time)
Boolean *traffic = true; // Traffic (default: false), not available on all transport modes. (optional)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (currently not used). (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)
array[Float] *dst = ; // List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional)

MatrixApi *apiInstance = [[MatrixApi alloc] init];

// Rectangular matrix between two points set
[apiInstance matrixWith:src
    mode:mode
    dimension:dimension
    traffic:traffic
    departure:departure
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
    dst:dst
              completionHandler: ^(MatrixResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.MatrixApi()

var src = ; // {array[Float]} List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute fastest or shortest and the optional additional dimension (default on time.)
  'traffic': true, // {Boolean} Traffic (default: false), not available on all transport modes.
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (currently not used).
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example, // {String} 
  'dst':  // {array[Float]} List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.matrix(src, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class matrixExample
    {
        public void main()
        {
            
            var apiInstance = new MatrixApi();
            var src = new array[Float](); // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute fastest or shortest and the optional additional dimension (default on time.) (optional)  (default to time)
            var traffic = true;  // Boolean | Traffic (default: false), not available on all transport modes. (optional) 
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (currently not used). (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)
            var dst = new array[Float](); // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional) 

            try
            {
                // Rectangular matrix between two points set
                MatrixResult result = apiInstance.matrix(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MatrixApi.matrix: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MatrixApi();
$src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
$traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 
$dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

try {
    $result = $api_instance->matrix($src, $mode, $dimension, $traffic, $departure, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $approach, $snap, $strictRestriction, $lang, $dst);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MatrixApi->matrix: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MatrixApi;

my $api_instance = WWW::SwaggerClient::MatrixApi->new();
my $src = []; # array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute fastest or shortest and the optional additional dimension (default on time.)
my $traffic = true; # Boolean | Traffic (default: false), not available on all transport modes.
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (currently not used).
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 
my $dst = []; # array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

eval { 
    my $result = $api_instance->matrix(src => $src, mode => $mode, dimension => $dimension, traffic => $traffic, departure => $departure, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang, dst => $dst);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MatrixApi->matrix: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MatrixApi()
src =  # array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute fastest or shortest and the optional additional dimension (default on time.) (optional) (default to time)
traffic = true # Boolean | Traffic (default: false), not available on all transport modes. (optional)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (currently not used). (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)
dst =  # array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional)

try: 
    # Rectangular matrix between two points set
    api_response = api_instance.matrix(src, mode=mode, dimension=dimension, traffic=traffic, departure=departure, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang, dst=dst)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MatrixApi->matrix: %s\n" % e)

Parameters

Form parameters
Name Description
speed_multiplier_area
speed_multiplicator_area
src*
dst
Query parameters
Name Description
mode
dimension
traffic
departure
speed_multiplier
speed_multiplicator
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
approach
snap
strict_restriction
lang

Responses

Status: 200 - Rectangular matrix between two points set


matrixPost

Rectangular matrix between two points set

Rectangular matrix between two points set Build time/distance matrix between several points depending of transportation mode, dimension, etc... Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time, see capability operation for informations).


/0.1/matrix

Usage and SDK Samples

curl -X post "https://router.mapotempo.com/0.1/matrix"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MatrixApi;

import java.io.File;
import java.util.*;

public class MatrixApiExample {

    public static void main(String[] args) {
        
        MatrixApi apiInstance = new MatrixApi();
        array[Float] src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        array[Float] dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
        try {
            MatrixResult result = apiInstance.matrixPost(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatrixApi#matrixPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MatrixApi;

public class MatrixApiExample {

    public static void main(String[] args) {
        MatrixApi apiInstance = new MatrixApi();
        array[Float] src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        array[Float] dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
        try {
            MatrixResult result = apiInstance.matrixPost(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatrixApi#matrixPost");
            e.printStackTrace();
        }
    }
}
array[Float] *src = ; // List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute fastest or shortest and the optional additional dimension (default on time.) (optional) (default to time)
Boolean *traffic = true; // Traffic (default: false), not available on all transport modes. (optional)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (currently not used). (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)
array[Float] *dst = ; // List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional)

MatrixApi *apiInstance = [[MatrixApi alloc] init];

// Rectangular matrix between two points set
[apiInstance matrixPostWith:src
    mode:mode
    dimension:dimension
    traffic:traffic
    departure:departure
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
    dst:dst
              completionHandler: ^(MatrixResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.MatrixApi()

var src = ; // {array[Float]} List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute fastest or shortest and the optional additional dimension (default on time.)
  'traffic': true, // {Boolean} Traffic (default: false), not available on all transport modes.
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (currently not used).
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example, // {String} 
  'dst':  // {array[Float]} List of destination of latitudes and longitudes, if not present compute square matrix with sources points.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.matrixPost(src, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class matrixPostExample
    {
        public void main()
        {
            
            var apiInstance = new MatrixApi();
            var src = new array[Float](); // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute fastest or shortest and the optional additional dimension (default on time.) (optional)  (default to time)
            var traffic = true;  // Boolean | Traffic (default: false), not available on all transport modes. (optional) 
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (currently not used). (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)
            var dst = new array[Float](); // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional) 

            try
            {
                // Rectangular matrix between two points set
                MatrixResult result = apiInstance.matrixPost(src, mode, dimension, traffic, departure, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, approach, snap, strictRestriction, lang, dst);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MatrixApi.matrixPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MatrixApi();
$src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute fastest or shortest and the optional additional dimension (default on time.)
$traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (currently not used).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 
$dst = ; // array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

try {
    $result = $api_instance->matrixPost($src, $mode, $dimension, $traffic, $departure, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $approach, $snap, $strictRestriction, $lang, $dst);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MatrixApi->matrixPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MatrixApi;

my $api_instance = WWW::SwaggerClient::MatrixApi->new();
my $src = []; # array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute fastest or shortest and the optional additional dimension (default on time.)
my $traffic = true; # Boolean | Traffic (default: false), not available on all transport modes.
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (currently not used).
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 
my $dst = []; # array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

eval { 
    my $result = $api_instance->matrixPost(src => $src, mode => $mode, dimension => $dimension, traffic => $traffic, departure => $departure, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang, dst => $dst);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MatrixApi->matrixPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MatrixApi()
src =  # array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute fastest or shortest and the optional additional dimension (default on time.) (optional) (default to time)
traffic = true # Boolean | Traffic (default: false), not available on all transport modes. (optional)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (currently not used). (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)
dst =  # array[Float] | List of destination of latitudes and longitudes, if not present compute square matrix with sources points. (optional)

try: 
    # Rectangular matrix between two points set
    api_response = api_instance.matrixPost(src, mode=mode, dimension=dimension, traffic=traffic, departure=departure, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang, dst=dst)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MatrixApi->matrixPost: %s\n" % e)

Parameters

Form parameters
Name Description
mode
dimension
traffic
departure
speed_multiplier
speed_multiplicator
speed_multiplier_area
speed_multiplicator_area
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
approach
snap
strict_restriction
lang
src*
dst

Responses

Status: 201 - Rectangular matrix between two points set


Route

route

Route via two points or more

Route via two points or more Find the route between two or more points depending of transportation mode, dimension, etc... Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time, see capability operation for information).


/0.1/route

Usage and SDK Samples

curl -X get "https://router.mapotempo.com/0.1/route?mode=&dimension=&geometry=&traffic=&departure=&arrival=&speed_multiplier=&speed_multiplicator=&track=&motorway=&toll=&trailers=&weight=&weight_per_axle=&height=&width=&length=&hazardous_goods=&max_walk_distance=&toll_costs=¤cy=&approach=&snap=&strict_restriction=&lang=&precision="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RouteApi;

import java.io.File;
import java.util.*;

public class RouteApiExample {

    public static void main(String[] args) {
        
        RouteApi apiInstance = new RouteApi();
        array[Float] loc = ; // array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.route(loc, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteApi#route");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RouteApi;

public class RouteApiExample {

    public static void main(String[] args) {
        RouteApi apiInstance = new RouteApi();
        array[Float] loc = ; // array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.route(loc, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteApi#route");
            e.printStackTrace();
        }
    }
}
array[Float] *loc = ; // List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute fastest or shortest (default on time.) (optional) (default to time)
Boolean *geometry = true; // Return the route trace geometry. (optional) (default to true)
Boolean *traffic = true; // Traffic (default: false), not available on all transport modes. (optional)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
Date *arrival = 2013-10-20T19:20:30+01:00; // Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
Boolean *tollCosts = true; //  (optional)
String *currency = currency_example; // ISO currency code. (optional) (default to EUR)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)
Integer *precision = 56; // Precison for encoded polyline. (optional) (default to 6)

RouteApi *apiInstance = [[RouteApi alloc] init];

// Route via two points or more
[apiInstance routeWith:loc
    mode:mode
    dimension:dimension
    geometry:geometry
    traffic:traffic
    departure:departure
    arrival:arrival
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    tollCosts:tollCosts
    currency:currency
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
    precision:precision
              completionHandler: ^(RouteResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.RouteApi()

var loc = ; // {array[Float]} List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute fastest or shortest (default on time.)
  'geometry': true, // {Boolean} Return the route trace geometry.
  'traffic': true, // {Boolean} Traffic (default: false), not available on all transport modes.
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
  'arrival': 2013-10-20T19:20:30+01:00, // {Date} Arrival date time (not used by all transport modes). In exclusion with departure.
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'tollCosts': true, // {Boolean} 
  'currency': currency_example, // {String} ISO currency code.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example, // {String} 
  'precision': 56 // {Integer} Precison for encoded polyline.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.route(loc, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class routeExample
    {
        public void main()
        {
            
            var apiInstance = new RouteApi();
            var loc = new array[Float](); // array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute fastest or shortest (default on time.) (optional)  (default to time)
            var geometry = true;  // Boolean | Return the route trace geometry. (optional)  (default to true)
            var traffic = true;  // Boolean | Traffic (default: false), not available on all transport modes. (optional) 
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional) 
            var arrival = 2013-10-20T19:20:30+01:00;  // Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var tollCosts = true;  // Boolean |  (optional) 
            var currency = currency_example;  // String | ISO currency code. (optional)  (default to EUR)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)
            var precision = 56;  // Integer | Precison for encoded polyline. (optional)  (default to 6)

            try
            {
                // Route via two points or more
                RouteResult result = apiInstance.route(loc, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RouteApi.route: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RouteApi();
$loc = ; // array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
$geometry = true; // Boolean | Return the route trace geometry.
$traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
$arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$tollCosts = true; // Boolean | 
$currency = currency_example; // String | ISO currency code.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 
$precision = 56; // Integer | Precison for encoded polyline.

try {
    $result = $api_instance->route($loc, $mode, $dimension, $geometry, $traffic, $departure, $arrival, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $tollCosts, $currency, $approach, $snap, $strictRestriction, $lang, $precision);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RouteApi->route: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RouteApi;

my $api_instance = WWW::SwaggerClient::RouteApi->new();
my $loc = []; # array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute fastest or shortest (default on time.)
my $geometry = true; # Boolean | Return the route trace geometry.
my $traffic = true; # Boolean | Traffic (default: false), not available on all transport modes.
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
my $arrival = 2013-10-20T19:20:30+01:00; # Date | Arrival date time (not used by all transport modes). In exclusion with departure.
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $tollCosts = true; # Boolean | 
my $currency = currency_example; # String | ISO currency code.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 
my $precision = 56; # Integer | Precison for encoded polyline.

eval { 
    my $result = $api_instance->route(loc => $loc, mode => $mode, dimension => $dimension, geometry => $geometry, traffic => $traffic, departure => $departure, arrival => $arrival, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, tollCosts => $tollCosts, currency => $currency, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang, precision => $precision);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RouteApi->route: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.RouteApi()
loc =  # array[Float] | List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute fastest or shortest (default on time.) (optional) (default to time)
geometry = true # Boolean | Return the route trace geometry. (optional) (default to true)
traffic = true # Boolean | Traffic (default: false), not available on all transport modes. (optional)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
arrival = 2013-10-20T19:20:30+01:00 # Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
tollCosts = true # Boolean |  (optional)
currency = currency_example # String | ISO currency code. (optional) (default to EUR)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)
precision = 56 # Integer | Precison for encoded polyline. (optional) (default to 6)

try: 
    # Route via two points or more
    api_response = api_instance.route(loc, mode=mode, dimension=dimension, geometry=geometry, traffic=traffic, departure=departure, arrival=arrival, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, tollCosts=tollCosts, currency=currency, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang, precision=precision)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RouteApi->route: %s\n" % e)

Parameters

Form parameters
Name Description
speed_multiplier_area
speed_multiplicator_area
loc*
Query parameters
Name Description
mode
dimension
geometry
traffic
departure
arrival
speed_multiplier
speed_multiplicator
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
toll_costs
currency
approach
snap
strict_restriction
lang
precision

Responses

Status: 200 - Route via two points or more


Routes

routes

Many routes, each via two points or more

Many routes, each via two points or more Find many routes between many couples of two or more points. Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time).


/0.1/routes

Usage and SDK Samples

curl -X get "https://router.mapotempo.com/0.1/routes?mode=&dimension=&geometry=&traffic=&departure=&arrival=&speed_multiplier=&speed_multiplicator=&track=&motorway=&toll=&trailers=&weight=&weight_per_axle=&height=&width=&length=&hazardous_goods=&max_walk_distance=&toll_costs=¤cy=&approach=&snap=&strict_restriction=&lang=&precision="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoutesApi;

import java.io.File;
import java.util.*;

public class RoutesApiExample {

    public static void main(String[] args) {
        
        RoutesApi apiInstance = new RoutesApi();
        array[String] locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle, in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.routes(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutesApi#routes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoutesApi;

public class RoutesApiExample {

    public static void main(String[] args) {
        RoutesApi apiInstance = new RoutesApi();
        array[String] locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle, in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.routes(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutesApi#routes");
            e.printStackTrace();
        }
    }
}
array[String] *locs = ; // List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute fastest or shortest (default on time.) (optional) (default to time)
Boolean *geometry = true; // Return the route trace geometry. (optional) (default to true)
Boolean *traffic = true; // Traffic (default: false), not available on all transport modes. (optional)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
Date *arrival = 2013-10-20T19:20:30+01:00; // Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle, in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
Boolean *tollCosts = true; //  (optional)
String *currency = currency_example; // ISO currency code. (optional) (default to EUR)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)
Integer *precision = 56; // Precison for encoded polyline. (optional) (default to 6)

RoutesApi *apiInstance = [[RoutesApi alloc] init];

// Many routes, each via two points or more
[apiInstance routesWith:locs
    mode:mode
    dimension:dimension
    geometry:geometry
    traffic:traffic
    departure:departure
    arrival:arrival
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    tollCosts:tollCosts
    currency:currency
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
    precision:precision
              completionHandler: ^(RouteResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.RoutesApi()

var locs = ; // {array[String]} List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute fastest or shortest (default on time.)
  'geometry': true, // {Boolean} Return the route trace geometry.
  'traffic': true, // {Boolean} Traffic (default: false), not available on all transport modes.
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
  'arrival': 2013-10-20T19:20:30+01:00, // {Date} Arrival date time (not used by all transport modes). In exclusion with departure.
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle, in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'tollCosts': true, // {Boolean} 
  'currency': currency_example, // {String} ISO currency code.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example, // {String} 
  'precision': 56 // {Integer} Precison for encoded polyline.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routes(locs, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class routesExample
    {
        public void main()
        {
            
            var apiInstance = new RoutesApi();
            var locs = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute fastest or shortest (default on time.) (optional)  (default to time)
            var geometry = true;  // Boolean | Return the route trace geometry. (optional)  (default to true)
            var traffic = true;  // Boolean | Traffic (default: false), not available on all transport modes. (optional) 
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional) 
            var arrival = 2013-10-20T19:20:30+01:00;  // Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle, in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var tollCosts = true;  // Boolean |  (optional) 
            var currency = currency_example;  // String | ISO currency code. (optional)  (default to EUR)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)
            var precision = 56;  // Integer | Precison for encoded polyline. (optional)  (default to 6)

            try
            {
                // Many routes, each via two points or more
                RouteResult result = apiInstance.routes(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoutesApi.routes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RoutesApi();
$locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
$geometry = true; // Boolean | Return the route trace geometry.
$traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
$arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle, in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$tollCosts = true; // Boolean | 
$currency = currency_example; // String | ISO currency code.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 
$precision = 56; // Integer | Precison for encoded polyline.

try {
    $result = $api_instance->routes($locs, $mode, $dimension, $geometry, $traffic, $departure, $arrival, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $tollCosts, $currency, $approach, $snap, $strictRestriction, $lang, $precision);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutesApi->routes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoutesApi;

my $api_instance = WWW::SwaggerClient::RoutesApi->new();
my $locs = []; # array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute fastest or shortest (default on time.)
my $geometry = true; # Boolean | Return the route trace geometry.
my $traffic = true; # Boolean | Traffic (default: false), not available on all transport modes.
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
my $arrival = 2013-10-20T19:20:30+01:00; # Date | Arrival date time (not used by all transport modes). In exclusion with departure.
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle, in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $tollCosts = true; # Boolean | 
my $currency = currency_example; # String | ISO currency code.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 
my $precision = 56; # Integer | Precison for encoded polyline.

eval { 
    my $result = $api_instance->routes(locs => $locs, mode => $mode, dimension => $dimension, geometry => $geometry, traffic => $traffic, departure => $departure, arrival => $arrival, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, tollCosts => $tollCosts, currency => $currency, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang, precision => $precision);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutesApi->routes: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.RoutesApi()
locs =  # array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute fastest or shortest (default on time.) (optional) (default to time)
geometry = true # Boolean | Return the route trace geometry. (optional) (default to true)
traffic = true # Boolean | Traffic (default: false), not available on all transport modes. (optional)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
arrival = 2013-10-20T19:20:30+01:00 # Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle, in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
tollCosts = true # Boolean |  (optional)
currency = currency_example # String | ISO currency code. (optional) (default to EUR)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)
precision = 56 # Integer | Precison for encoded polyline. (optional) (default to 6)

try: 
    # Many routes, each via two points or more
    api_response = api_instance.routes(locs, mode=mode, dimension=dimension, geometry=geometry, traffic=traffic, departure=departure, arrival=arrival, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, tollCosts=tollCosts, currency=currency, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang, precision=precision)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutesApi->routes: %s\n" % e)

Parameters

Form parameters
Name Description
speed_multiplier_area
speed_multiplicator_area
locs*
Query parameters
Name Description
mode
dimension
geometry
traffic
departure
arrival
speed_multiplier
speed_multiplicator
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
toll_costs
currency
approach
snap
strict_restriction
lang
precision

Responses

Status: 200 - Many routes, each via two points or more


routesPost

Many routes, each via two points or more

Many routes, each via two points or more Find many routes between many couples of two or more points. Area/speed_multiplier_area can be used to define areas where not to go or with heavy traffic (only available for truck mode at this time).


/0.1/routes

Usage and SDK Samples

curl -X post "https://router.mapotempo.com/0.1/routes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoutesApi;

import java.io.File;
import java.util.*;

public class RoutesApiExample {

    public static void main(String[] args) {
        
        RoutesApi apiInstance = new RoutesApi();
        array[String] locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle, in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.routesPost(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutesApi#routesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoutesApi;

public class RoutesApiExample {

    public static void main(String[] args) {
        RoutesApi apiInstance = new RoutesApi();
        array[String] locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
        String mode = mode_example; // String | Transportation mode (see capability operation for available modes).
        String dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
        Boolean geometry = true; // Boolean | Return the route trace geometry.
        Boolean traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
        Date departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
        Date arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
        Float speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
        Float speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
        array[Float] speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
        array[Float] speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
        Boolean track = true; // Boolean | Use track or not.
        Boolean motorway = true; // Boolean | Use motorway or not.
        Boolean toll = true; // Boolean | Use toll section or not.
        Integer trailers = 56; // Integer | Number of trailers.
        Float weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
        Float weightPerAxle = 3.4; // Float | Weight per axle, in tons.
        Float height = 3.4; // Float | Height in meters.
        Float width = 3.4; // Float | Width in meters.
        Float length = 3.4; // Float | Length in meters.
        String hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
        Float maxWalkDistance = 3.4; // Float | Max distance by walk.
        Boolean tollCosts = true; // Boolean | 
        String currency = currency_example; // String | ISO currency code.
        String approach = approach_example; // String | Arrive/Leave in the traffic direction.
        Float snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
        Boolean strictRestriction = true; // Boolean | Strict compliance with truck limitations.
        String lang = lang_example; // String | 
        Integer precision = 56; // Integer | Precison for encoded polyline.
        try {
            RouteResult result = apiInstance.routesPost(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutesApi#routesPost");
            e.printStackTrace();
        }
    }
}
array[String] *locs = ; // List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
String *mode = mode_example; // Transportation mode (see capability operation for available modes). (optional)
String *dimension = dimension_example; // Compute fastest or shortest (default on time.) (optional) (default to time)
Boolean *geometry = true; // Return the route trace geometry. (optional) (default to true)
Boolean *traffic = true; // Traffic (default: false), not available on all transport modes. (optional)
Date *departure = 2013-10-20T19:20:30+01:00; // Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
Date *arrival = 2013-10-20T19:20:30+01:00; // Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
Float *speedMultiplier = 3.4; // Speed multiplier (default: 1), not available on all transport modes. (optional)
Float *speedMultiplicator = 3.4; // Deprecated, use speed_multiplier instead. (optional)
array[Float] *speedMultiplierArea = ; // Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
array[Float] *speedMultiplicatorArea = ; // Deprecated, use speed_multiplier_area instead. (optional)
Boolean *track = true; // Use track or not. (optional) (default to true)
Boolean *motorway = true; // Use motorway or not. (optional) (default to true)
Boolean *toll = true; // Use toll section or not. (optional) (default to true)
Integer *trailers = 56; // Number of trailers. (optional)
Float *weight = 3.4; // Vehicle weight including trailers and shipped goods, in tons. (optional)
Float *weightPerAxle = 3.4; // Weight per axle, in tons. (optional)
Float *height = 3.4; // Height in meters. (optional)
Float *width = 3.4; // Width in meters. (optional)
Float *length = 3.4; // Length in meters. (optional)
String *hazardousGoods = hazardousGoods_example; // List of hazardous materials in the vehicle. (optional)
Float *maxWalkDistance = 3.4; // Max distance by walk. (optional) (default to 750)
Boolean *tollCosts = true; //  (optional)
String *currency = currency_example; // ISO currency code. (optional) (default to EUR)
String *approach = approach_example; // Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
Float *snap = 3.4; // Snap waypoint to junction close by snap distance. (optional)
Boolean *strictRestriction = true; // Strict compliance with truck limitations. (optional) (default to true)
String *lang = lang_example; //  (optional) (default to en)
Integer *precision = 56; // Precison for encoded polyline. (optional) (default to 6)

RoutesApi *apiInstance = [[RoutesApi alloc] init];

// Many routes, each via two points or more
[apiInstance routesPostWith:locs
    mode:mode
    dimension:dimension
    geometry:geometry
    traffic:traffic
    departure:departure
    arrival:arrival
    speedMultiplier:speedMultiplier
    speedMultiplicator:speedMultiplicator
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    track:track
    motorway:motorway
    toll:toll
    trailers:trailers
    weight:weight
    weightPerAxle:weightPerAxle
    height:height
    width:width
    length:length
    hazardousGoods:hazardousGoods
    maxWalkDistance:maxWalkDistance
    tollCosts:tollCosts
    currency:currency
    approach:approach
    snap:snap
    strictRestriction:strictRestriction
    lang:lang
    precision:precision
              completionHandler: ^(RouteResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RouterWrapperApi = require('router_wrapper_api');

var api = new RouterWrapperApi.RoutesApi()

var locs = ; // {array[String]} List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2

var opts = { 
  'mode': mode_example, // {String} Transportation mode (see capability operation for available modes).
  'dimension': dimension_example, // {String} Compute fastest or shortest (default on time.)
  'geometry': true, // {Boolean} Return the route trace geometry.
  'traffic': true, // {Boolean} Traffic (default: false), not available on all transport modes.
  'departure': 2013-10-20T19:20:30+01:00, // {Date} Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
  'arrival': 2013-10-20T19:20:30+01:00, // {Date} Arrival date time (not used by all transport modes). In exclusion with departure.
  'speedMultiplier': 3.4, // {Float} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {Float} Deprecated, use speed_multiplier instead.
  'speedMultiplierArea': , // {array[Float]} Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
  'speedMultiplicatorArea': , // {array[Float]} Deprecated, use speed_multiplier_area instead.
  'track': true, // {Boolean} Use track or not.
  'motorway': true, // {Boolean} Use motorway or not.
  'toll': true, // {Boolean} Use toll section or not.
  'trailers': 56, // {Integer} Number of trailers.
  'weight': 3.4, // {Float} Vehicle weight including trailers and shipped goods, in tons.
  'weightPerAxle': 3.4, // {Float} Weight per axle, in tons.
  'height': 3.4, // {Float} Height in meters.
  'width': 3.4, // {Float} Width in meters.
  'length': 3.4, // {Float} Length in meters.
  'hazardousGoods': hazardousGoods_example, // {String} List of hazardous materials in the vehicle.
  'maxWalkDistance': 3.4, // {Float} Max distance by walk.
  'tollCosts': true, // {Boolean} 
  'currency': currency_example, // {String} ISO currency code.
  'approach': approach_example, // {String} Arrive/Leave in the traffic direction.
  'snap': 3.4, // {Float} Snap waypoint to junction close by snap distance.
  'strictRestriction': true, // {Boolean} Strict compliance with truck limitations.
  'lang': lang_example, // {String} 
  'precision': 56 // {Integer} Precison for encoded polyline.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routesPost(locs, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class routesPostExample
    {
        public void main()
        {
            
            var apiInstance = new RoutesApi();
            var locs = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
            var mode = mode_example;  // String | Transportation mode (see capability operation for available modes). (optional) 
            var dimension = dimension_example;  // String | Compute fastest or shortest (default on time.) (optional)  (default to time)
            var geometry = true;  // Boolean | Return the route trace geometry. (optional)  (default to true)
            var traffic = true;  // Boolean | Traffic (default: false), not available on all transport modes. (optional) 
            var departure = 2013-10-20T19:20:30+01:00;  // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional) 
            var arrival = 2013-10-20T19:20:30+01:00;  // Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional) 
            var speedMultiplier = 3.4;  // Float | Speed multiplier (default: 1), not available on all transport modes. (optional) 
            var speedMultiplicator = 3.4;  // Float | Deprecated, use speed_multiplier instead. (optional) 
            var speedMultiplierArea = new array[Float](); // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional) 
            var speedMultiplicatorArea = new array[Float](); // array[Float] | Deprecated, use speed_multiplier_area instead. (optional) 
            var track = true;  // Boolean | Use track or not. (optional)  (default to true)
            var motorway = true;  // Boolean | Use motorway or not. (optional)  (default to true)
            var toll = true;  // Boolean | Use toll section or not. (optional)  (default to true)
            var trailers = 56;  // Integer | Number of trailers. (optional) 
            var weight = 3.4;  // Float | Vehicle weight including trailers and shipped goods, in tons. (optional) 
            var weightPerAxle = 3.4;  // Float | Weight per axle, in tons. (optional) 
            var height = 3.4;  // Float | Height in meters. (optional) 
            var width = 3.4;  // Float | Width in meters. (optional) 
            var length = 3.4;  // Float | Length in meters. (optional) 
            var hazardousGoods = hazardousGoods_example;  // String | List of hazardous materials in the vehicle. (optional) 
            var maxWalkDistance = 3.4;  // Float | Max distance by walk. (optional)  (default to 750)
            var tollCosts = true;  // Boolean |  (optional) 
            var currency = currency_example;  // String | ISO currency code. (optional)  (default to EUR)
            var approach = approach_example;  // String | Arrive/Leave in the traffic direction. (optional)  (default to unrestricted)
            var snap = 3.4;  // Float | Snap waypoint to junction close by snap distance. (optional) 
            var strictRestriction = true;  // Boolean | Strict compliance with truck limitations. (optional)  (default to true)
            var lang = lang_example;  // String |  (optional)  (default to en)
            var precision = 56;  // Integer | Precison for encoded polyline. (optional)  (default to 6)

            try
            {
                // Many routes, each via two points or more
                RouteResult result = apiInstance.routesPost(locs, mode, dimension, geometry, traffic, departure, arrival, speedMultiplier, speedMultiplicator, speedMultiplierArea, speedMultiplicatorArea, track, motorway, toll, trailers, weight, weightPerAxle, height, width, length, hazardousGoods, maxWalkDistance, tollCosts, currency, approach, snap, strictRestriction, lang, precision);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoutesApi.routesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RoutesApi();
$locs = ; // array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
$mode = mode_example; // String | Transportation mode (see capability operation for available modes).
$dimension = dimension_example; // String | Compute fastest or shortest (default on time.)
$geometry = true; // Boolean | Return the route trace geometry.
$traffic = true; // Boolean | Traffic (default: false), not available on all transport modes.
$departure = 2013-10-20T19:20:30+01:00; // Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
$arrival = 2013-10-20T19:20:30+01:00; // Date | Arrival date time (not used by all transport modes). In exclusion with departure.
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$speedMultiplierArea = ; // array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
$speedMultiplicatorArea = ; // array[Float] | Deprecated, use speed_multiplier_area instead.
$track = true; // Boolean | Use track or not.
$motorway = true; // Boolean | Use motorway or not.
$toll = true; // Boolean | Use toll section or not.
$trailers = 56; // Integer | Number of trailers.
$weight = 3.4; // Float | Vehicle weight including trailers and shipped goods, in tons.
$weightPerAxle = 3.4; // Float | Weight per axle, in tons.
$height = 3.4; // Float | Height in meters.
$width = 3.4; // Float | Width in meters.
$length = 3.4; // Float | Length in meters.
$hazardousGoods = hazardousGoods_example; // String | List of hazardous materials in the vehicle.
$maxWalkDistance = 3.4; // Float | Max distance by walk.
$tollCosts = true; // Boolean | 
$currency = currency_example; // String | ISO currency code.
$approach = approach_example; // String | Arrive/Leave in the traffic direction.
$snap = 3.4; // Float | Snap waypoint to junction close by snap distance.
$strictRestriction = true; // Boolean | Strict compliance with truck limitations.
$lang = lang_example; // String | 
$precision = 56; // Integer | Precison for encoded polyline.

try {
    $result = $api_instance->routesPost($locs, $mode, $dimension, $geometry, $traffic, $departure, $arrival, $speedMultiplier, $speedMultiplicator, $speedMultiplierArea, $speedMultiplicatorArea, $track, $motorway, $toll, $trailers, $weight, $weightPerAxle, $height, $width, $length, $hazardousGoods, $maxWalkDistance, $tollCosts, $currency, $approach, $snap, $strictRestriction, $lang, $precision);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutesApi->routesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoutesApi;

my $api_instance = WWW::SwaggerClient::RoutesApi->new();
my $locs = []; # array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
my $mode = mode_example; # String | Transportation mode (see capability operation for available modes).
my $dimension = dimension_example; # String | Compute fastest or shortest (default on time.)
my $geometry = true; # Boolean | Return the route trace geometry.
my $traffic = true; # Boolean | Traffic (default: false), not available on all transport modes.
my $departure = 2013-10-20T19:20:30+01:00; # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
my $arrival = 2013-10-20T19:20:30+01:00; # Date | Arrival date time (not used by all transport modes). In exclusion with departure.
my $speedMultiplier = 3.4; # Float | Speed multiplier (default: 1), not available on all transport modes.
my $speedMultiplicator = 3.4; # Float | Deprecated, use speed_multiplier instead.
my $speedMultiplierArea = []; # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
my $speedMultiplicatorArea = []; # array[Float] | Deprecated, use speed_multiplier_area instead.
my $track = true; # Boolean | Use track or not.
my $motorway = true; # Boolean | Use motorway or not.
my $toll = true; # Boolean | Use toll section or not.
my $trailers = 56; # Integer | Number of trailers.
my $weight = 3.4; # Float | Vehicle weight including trailers and shipped goods, in tons.
my $weightPerAxle = 3.4; # Float | Weight per axle, in tons.
my $height = 3.4; # Float | Height in meters.
my $width = 3.4; # Float | Width in meters.
my $length = 3.4; # Float | Length in meters.
my $hazardousGoods = hazardousGoods_example; # String | List of hazardous materials in the vehicle.
my $maxWalkDistance = 3.4; # Float | Max distance by walk.
my $tollCosts = true; # Boolean | 
my $currency = currency_example; # String | ISO currency code.
my $approach = approach_example; # String | Arrive/Leave in the traffic direction.
my $snap = 3.4; # Float | Snap waypoint to junction close by snap distance.
my $strictRestriction = true; # Boolean | Strict compliance with truck limitations.
my $lang = lang_example; # String | 
my $precision = 56; # Integer | Precison for encoded polyline.

eval { 
    my $result = $api_instance->routesPost(locs => $locs, mode => $mode, dimension => $dimension, geometry => $geometry, traffic => $traffic, departure => $departure, arrival => $arrival, speedMultiplier => $speedMultiplier, speedMultiplicator => $speedMultiplicator, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, track => $track, motorway => $motorway, toll => $toll, trailers => $trailers, weight => $weight, weightPerAxle => $weightPerAxle, height => $height, width => $width, length => $length, hazardousGoods => $hazardousGoods, maxWalkDistance => $maxWalkDistance, tollCosts => $tollCosts, currency => $currency, approach => $approach, snap => $snap, strictRestriction => $strictRestriction, lang => $lang, precision => $precision);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutesApi->routesPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.RoutesApi()
locs =  # array[String] | List of latitudes and longitudes separated with commas. Each route separated by pipes. E.g. r1lat1,r1lng1,r1lat2,r1lng2|r2lat1,r2lng1,r2lat2,r2lng2
mode = mode_example # String | Transportation mode (see capability operation for available modes). (optional)
dimension = dimension_example # String | Compute fastest or shortest (default on time.) (optional) (default to time)
geometry = true # Boolean | Return the route trace geometry. (optional) (default to true)
traffic = true # Boolean | Traffic (default: false), not available on all transport modes. (optional)
departure = 2013-10-20T19:20:30+01:00 # Date | Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time. (optional)
arrival = 2013-10-20T19:20:30+01:00 # Date | Arrival date time (not used by all transport modes). In exclusion with departure. (optional)
speedMultiplier = 3.4 # Float | Speed multiplier (default: 1), not available on all transport modes. (optional)
speedMultiplicator = 3.4 # Float | Deprecated, use speed_multiplier instead. (optional)
speedMultiplierArea =  # array[Float] | Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time). (optional)
speedMultiplicatorArea =  # array[Float] | Deprecated, use speed_multiplier_area instead. (optional)
track = true # Boolean | Use track or not. (optional) (default to true)
motorway = true # Boolean | Use motorway or not. (optional) (default to true)
toll = true # Boolean | Use toll section or not. (optional) (default to true)
trailers = 56 # Integer | Number of trailers. (optional)
weight = 3.4 # Float | Vehicle weight including trailers and shipped goods, in tons. (optional)
weightPerAxle = 3.4 # Float | Weight per axle, in tons. (optional)
height = 3.4 # Float | Height in meters. (optional)
width = 3.4 # Float | Width in meters. (optional)
length = 3.4 # Float | Length in meters. (optional)
hazardousGoods = hazardousGoods_example # String | List of hazardous materials in the vehicle. (optional)
maxWalkDistance = 3.4 # Float | Max distance by walk. (optional) (default to 750)
tollCosts = true # Boolean |  (optional)
currency = currency_example # String | ISO currency code. (optional) (default to EUR)
approach = approach_example # String | Arrive/Leave in the traffic direction. (optional) (default to unrestricted)
snap = 3.4 # Float | Snap waypoint to junction close by snap distance. (optional)
strictRestriction = true # Boolean | Strict compliance with truck limitations. (optional) (default to true)
lang = lang_example # String |  (optional) (default to en)
precision = 56 # Integer | Precison for encoded polyline. (optional) (default to 6)

try: 
    # Many routes, each via two points or more
    api_response = api_instance.routesPost(locs, mode=mode, dimension=dimension, geometry=geometry, traffic=traffic, departure=departure, arrival=arrival, speedMultiplier=speedMultiplier, speedMultiplicator=speedMultiplicator, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, track=track, motorway=motorway, toll=toll, trailers=trailers, weight=weight, weightPerAxle=weightPerAxle, height=height, width=width, length=length, hazardousGoods=hazardousGoods, maxWalkDistance=maxWalkDistance, tollCosts=tollCosts, currency=currency, approach=approach, snap=snap, strictRestriction=strictRestriction, lang=lang, precision=precision)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutesApi->routesPost: %s\n" % e)

Parameters

Form parameters
Name Description
mode
dimension
geometry
traffic
departure
arrival
speed_multiplier
speed_multiplicator
speed_multiplier_area
speed_multiplicator_area
track
motorway
toll
trailers
weight
weight_per_axle
height
width
length
hazardous_goods
max_walk_distance
toll_costs
currency
approach
snap
strict_restriction
lang
locs*
precision

Responses

Status: 201 - Many routes, each via two points or more


Generated 2018-02-09T15:31:55.514+01:00