Router Wrapper API

Capability

capability

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 "//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\ApiCapabilityApi();

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

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 "//router.mapotempo.com//0.1/isoline?mode=&dimension=&departure=&speed_multiplier=&speed_multiplicator=&area=&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="
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 (only used if router supports traffic).
        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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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, area, 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 (only used if router supports traffic).
        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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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, area, 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 (only used if router supports traffic). (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[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
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
    area:area
    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 (only used if router supports traffic).
  'speedMultiplier': 3.4, // {{Float}} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {{Float}} Deprecated, use speed_multiplier instead.
  'area': , // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
  '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 (only used if router supports traffic). (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 area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
            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, area, 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\ApiIsolineApi();
$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 (only used if router supports traffic).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
$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, $area, $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 (only used if router supports traffic).
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 $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
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, area => $area, 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 (only used if router supports traffic). (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)
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
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, area=area, 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

Query parameters
Name Description
mode
String
Transportation mode (see capability operation for available modes).
dimension
String
Compute isochrone or isodistance (default on time.)
departure
Date (date-time)
Departure date time (only used if router supports traffic).
speed_multiplier
Float (float)
Speed multiplier (default: 1), not available on all transport modes.
speed_multiplicator
Float (float)
Deprecated, use speed_multiplier instead.
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
track
Boolean
Use track or not.
motorway
Boolean
Use motorway or not.
toll
Boolean
Use toll section or not.
trailers
Integer (int32)
Number of trailers.
weight
Float (float)
Vehicle weight including trailers and shipped goods, in tons.
weight_per_axle
Float (float)
Weight per axle in tons.
height
Float (float)
Height in meters.
width
Float (float)
Width in meters.
length
Float (float)
Length in meters.
hazardous_goods
String
List of hazardous materials in the vehicle.
max_walk_distance
Float (float)
Max distance by walk.
approach
String
Arrive/Leave in the traffic direction.
snap
Float (float)
Snap waypoint to junction close by snap distance.
strict_restriction
Boolean
Strict compliance with truck limitations.
lang
String
loc*
array[Float] (float)
Start latitude and longitude separated with a comma, e.g. lat1,lng1.
Required
size*
Integer (int32)
Size of isoline. Time in second, distance in meters.
Required

Responses

Status: 200 - Isoline from a start point

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


isolinePost

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 "//router.mapotempo.com//0.1/isoline?area=&speed_multiplier_area=&speed_multiplicator_area=&loc="
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();
        Body_2 body = ; // Body_2 | 
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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.
        try {
            IsolineResult result = apiInstance.isolinePost(body, loc, area, speedMultiplierArea, speedMultiplicatorArea);
            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();
        Body_2 body = ; // Body_2 | 
        array[Float] loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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.
        try {
            IsolineResult result = apiInstance.isolinePost(body, loc, area, speedMultiplierArea, speedMultiplicatorArea);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IsolineApi#isolinePost");
            e.printStackTrace();
        }
    }
}
Body_2 *body = ; // 
array[Float] *loc = ; // Start latitude and longitude separated with a comma, e.g. lat1,lng1.
array[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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)

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

// Isoline from a start point
[apiInstance isolinePostWith:body
    loc:loc
    area:area
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
              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 body = ; // {{Body_2}} 
var loc = ; // {{array[Float]}} Start latitude and longitude separated with a comma, e.g. lat1,lng1.
var opts = { 
  'area':  // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
  '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.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.isolinePost(bodyloc, 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 body = new Body_2(); // Body_2 | 
            var loc = new array[Float](); // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
            var area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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) 

            try
            {
                // Isoline from a start point
                IsolineResult result = apiInstance.isolinePost(body, loc, area, speedMultiplierArea, speedMultiplicatorArea);
                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\ApiIsolineApi();
$body = ; // Body_2 | 
$loc = ; // array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
$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.

try {
    $result = $api_instance->isolinePost($body, $loc, $area, $speedMultiplierArea, $speedMultiplicatorArea);
    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 $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 
my $loc = []; # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
my $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
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.

eval { 
    my $result = $api_instance->isolinePost(body => $body, loc => $loc, area => $area, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea);
    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()
body =  # Body_2 | 
loc =  # array[Float] | Start latitude and longitude separated with a comma, e.g. lat1,lng1.
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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)

try: 
    # Isoline from a start point
    api_response = api_instance.isoline_post(body, loc, area=area, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IsolineApi->isolinePost: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
loc*
array[Float] (float)
Start latitude and longitude separated with a comma, e.g. lat1,lng1.
Required

Responses

Status: 201 - Isoline from a start point

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


Matrix

matrix

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 "//router.mapotempo.com//0.1/matrix?mode=&dimension=&traffic=&departure=&speed_multiplier=&speed_multiplicator=&area=&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="
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 (only used if router supports traffic).
        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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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, area, 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 (only used if router supports traffic).
        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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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, area, 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 (only used if router supports traffic). (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[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
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
    area:area
    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 (only used if router supports traffic).
  'speedMultiplier': 3.4, // {{Float}} Speed multiplier (default: 1), not available on all transport modes.
  'speedMultiplicator': 3.4, // {{Float}} Deprecated, use speed_multiplier instead.
  'area': , // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
  '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 (only used if router supports traffic). (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 area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
            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, area, 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\ApiMatrixApi();
$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 (only used if router supports traffic).
$speedMultiplier = 3.4; // Float | Speed multiplier (default: 1), not available on all transport modes.
$speedMultiplicator = 3.4; // Float | Deprecated, use speed_multiplier instead.
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
$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, $area, $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 (only used if router supports traffic).
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 $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
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, area => $area, 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 (only used if router supports traffic). (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)
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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.0)
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, area=area, 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

Query parameters
Name Description
mode
String
Transportation mode (see capability operation for available modes).
dimension
String
Compute fastest or shortest and the optional additional dimension (default on time.)
traffic
Boolean
Traffic (default: false), not available on all transport modes.
departure
Date (date-time)
Departure date time (only used if router supports traffic).
speed_multiplier
Float (float)
Speed multiplier (default: 1), not available on all transport modes.
speed_multiplicator
Float (float)
Deprecated, use speed_multiplier instead.
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
track
Boolean
Use track or not.
motorway
Boolean
Use motorway or not.
toll
Boolean
Use toll section or not.
trailers
Integer (int32)
Number of trailers.
weight
Float (float)
Vehicle weight including trailers and shipped goods, in tons.
weight_per_axle
Float (float)
Weight per axle in tons.
height
Float (float)
Height in meters.
width
Float (float)
Width in meters.
length
Float (float)
Length in meters.
hazardous_goods
String
List of hazardous materials in the vehicle.
max_walk_distance
Float (float)
Max distance by walk.
approach
String
Arrive/Leave in the traffic direction.
snap
Float (float)
Snap waypoint to junction close by snap distance.
strict_restriction
Boolean
Strict compliance with truck limitations.
lang
String
src*
array[Float] (float)
List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
Required
dst
array[Float] (float)
List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

Responses

Status: 200 - Rectangular matrix between two points set

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


matrixPost

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 "//router.mapotempo.com//0.1/matrix?area=&speed_multiplier_area=&speed_multiplicator_area=&src=&dst="
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...
        Body_1 body = ; // Body_1 | 
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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.
        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, body, area, speedMultiplierArea, speedMultiplicatorArea, 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...
        Body_1 body = ; // Body_1 | 
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
        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.
        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, body, area, speedMultiplierArea, speedMultiplicatorArea, 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...
Body_1 *body = ; //  (optional)
array[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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)
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
    body:body
    area:area
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
    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 = { 
  'body':  // {{Body_1}} 
  'area':  // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
  '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.
  '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 body = new Body_1(); // Body_1 |  (optional) 
            var area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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 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, body, area, speedMultiplierArea, speedMultiplicatorArea, 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\ApiMatrixApi();
$src = ; // array[Float] | List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
$body = ; // Body_1 | 
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
$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.
$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, $body, $area, $speedMultiplierArea, $speedMultiplicatorArea, $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 $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 
my $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
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 $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, body => $body, area => $area, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea, 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...
body =  # Body_1 |  (optional)
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time). (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)
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_post(src, body=body, area=area, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea, dst=dst)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MatrixApi->matrixPost: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
src*
array[Float] (float)
List of sources of latitudes and longitudes separated with comma, e.g. lat1,lng1,lat2,lng2...
Required
dst
array[Float] (float)
List of destination of latitudes and longitudes, if not present compute square matrix with sources points.

Responses

Status: 201 - Rectangular matrix between two points set

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


Route

route

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 "//router.mapotempo.com//0.1/route?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=¤cy=&approach=&snap=&strict_restriction=&lang=&loc=&precision=&with_summed_by_area="
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 (only used if router supports traffic). 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.
        Boolean withSummedByArea = true; // Boolean | Returns way type detail when set to true.
        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, withSummedByArea);
            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 (only used if router supports traffic). 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.
        Boolean withSummedByArea = true; // Boolean | Returns way type detail when set to true.
        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, withSummedByArea);
            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 (only used if router supports traffic). 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.0)
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)
Boolean *withSummedByArea = true; // Returns way type detail when set to true. (optional)

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
    withSummedByArea:withSummedByArea
              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 (only used if router supports traffic). 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.
  'withSummedByArea': true // {{Boolean}} Returns way type detail when set to true.
};
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 (only used if router supports traffic). 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.0)
            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)
            var withSummedByArea = true;  // Boolean | Returns way type detail when set to true. (optional) 

            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, withSummedByArea);
                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\ApiRouteApi();
$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 (only used if router supports traffic). 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.
$withSummedByArea = true; // Boolean | Returns way type detail when set to true.

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, $withSummedByArea);
    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 (only used if router supports traffic). 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.
my $withSummedByArea = true; # Boolean | Returns way type detail when set to true.

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, withSummedByArea => $withSummedByArea);
    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 (only used if router supports traffic). 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.0)
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)
withSummedByArea = true # Boolean | Returns way type detail when set to true. (optional)

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, withSummedByArea=withSummedByArea)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RouteApi->route: %s\n" % e)

Parameters

Query parameters
Name Description
mode
String
Transportation mode (see capability operation for available modes).
dimension
String
Compute fastest or shortest (default on time.)
geometry
Boolean
Return the route trace geometry.
traffic
Boolean
Traffic (default: false), not available on all transport modes.
departure
Date (date-time)
Departure date time (only used if router supports traffic). Traffic (if used) is taken into account at this time.
arrival
Date (date-time)
Arrival date time (not used by all transport modes). In exclusion with departure.
speed_multiplier
Float (float)
Speed multiplier (default: 1), not available on all transport modes.
speed_multiplicator
Float (float)
Deprecated, use speed_multiplier instead.
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
track
Boolean
Use track or not.
motorway
Boolean
Use motorway or not.
toll
Boolean
Use toll section or not.
trailers
Integer (int32)
Number of trailers.
weight
Float (float)
Vehicle weight including trailers and shipped goods, in tons.
weight_per_axle
Float (float)
Weight per axle in tons.
height
Float (float)
Height in meters.
width
Float (float)
Width in meters.
length
Float (float)
Length in meters.
hazardous_goods
String
List of hazardous materials in the vehicle.
max_walk_distance
Float (float)
Max distance by walk.
toll_costs
Boolean
currency
String
ISO currency code.
approach
String
Arrive/Leave in the traffic direction.
snap
Float (float)
Snap waypoint to junction close by snap distance.
strict_restriction
Boolean
Strict compliance with truck limitations.
lang
String
loc*
array[Float] (float)
List of latitudes and longitudes separated with commas, e.g. lat1,lng1,lat2,lng2...
Required
precision
Integer (int32)
Precison for encoded polyline.
with_summed_by_area
Boolean
Returns way type detail when set to true.

Responses

Status: 200 - Route via two points or more

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


Routes

routes

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 "//router.mapotempo.com//0.1/routes?mode=&dimension=&geometry=&traffic=&departure=&arrival=&speed_multiplier=&speed_multiplicator=&area=&speed_multiplier_area=&speed_multiplicator_area=&track=&motorway=&toll=&trailers=&weight=&weight_per_axle=&height=&width=&length=&hazardous_goods=&max_walk_distance=&toll_costs=¤cy=&approach=&snap=&strict_restriction=&lang=&locs=&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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
        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, area, 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[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
        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, area, 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[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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.0)
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
    area:area
    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.
  'area': , // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
  '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 area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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.0)
            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, area, 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\ApiRoutesApi();
$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.
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
$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, $area, $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 $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
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, area => $area, 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)
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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.0)
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, area=area, 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

Query parameters
Name Description
mode
String
Transportation mode (see capability operation for available modes).
dimension
String
Compute fastest or shortest (default on time.)
geometry
Boolean
Return the route trace geometry.
traffic
Boolean
Traffic (default: false), not available on all transport modes.
departure
Date (date-time)
Departure date time (not used by all transport modes). Traffic (if used) is taken into account at this time.
arrival
Date (date-time)
Arrival date time (not used by all transport modes). In exclusion with departure.
speed_multiplier
Float (float)
Speed multiplier (default: 1), not available on all transport modes.
speed_multiplicator
Float (float)
Deprecated, use speed_multiplier instead.
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
track
Boolean
Use track or not.
motorway
Boolean
Use motorway or not.
toll
Boolean
Use toll section or not.
trailers
Integer (int32)
Number of trailers.
weight
Float (float)
Vehicle weight including trailers and shipped goods, in tons.
weight_per_axle
Float (float)
Weight per axle, in tons.
height
Float (float)
Height in meters.
width
Float (float)
Width in meters.
length
Float (float)
Length in meters.
hazardous_goods
String
List of hazardous materials in the vehicle.
max_walk_distance
Float (float)
Max distance by walk.
toll_costs
Boolean
currency
String
ISO currency code.
approach
String
Arrive/Leave in the traffic direction.
snap
Float (float)
Snap waypoint to junction close by snap distance.
strict_restriction
Boolean
Strict compliance with truck limitations.
lang
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
Required
precision
Integer (int32)
Precison for encoded polyline.

Responses

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

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.


routesPost

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 "//router.mapotempo.com//0.1/routes?area=&speed_multiplier_area=&speed_multiplicator_area=&locs="
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
        Body body = ; // Body | 
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
        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.
        try {
            RouteResult result = apiInstance.routesPost(locs, body, area, speedMultiplierArea, speedMultiplicatorArea);
            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
        Body body = ; // Body | 
        array[String] area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
        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.
        try {
            RouteResult result = apiInstance.routesPost(locs, body, area, speedMultiplierArea, speedMultiplicatorArea);
            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
Body *body = ; //  (optional)
array[String] *area = ; // List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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)

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

// Many routes, each via two points or more
[apiInstance routesPostWith:locs
    body:body
    area:area
    speedMultiplierArea:speedMultiplierArea
    speedMultiplicatorArea:speedMultiplicatorArea
              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 = { 
  'body':  // {{Body}} 
  'area':  // {{array[String]}} List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
  '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.
};
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 body = new Body(); // Body |  (optional) 
            var area = new array[String](); // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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) 

            try
            {
                // Many routes, each via two points or more
                RouteResult result = apiInstance.routesPost(locs, body, area, speedMultiplierArea, speedMultiplicatorArea);
                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\ApiRoutesApi();
$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
$body = ; // Body | 
$area = ; // array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
$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.

try {
    $result = $api_instance->routesPost($locs, $body, $area, $speedMultiplierArea, $speedMultiplicatorArea);
    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 $body = WWW::SwaggerClient::Object::Body->new(); # Body | 
my $area = []; # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
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.

eval { 
    my $result = $api_instance->routesPost(locs => $locs, body => $body, area => $area, speedMultiplierArea => $speedMultiplierArea, speedMultiplicatorArea => $speedMultiplicatorArea);
    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
body =  # Body |  (optional)
area =  # array[String] | List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations). (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)

try: 
    # Many routes, each via two points or more
    api_response = api_instance.routes_post(locs, body=body, area=area, speedMultiplierArea=speedMultiplierArea, speedMultiplicatorArea=speedMultiplicatorArea)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutesApi->routesPost: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
area
array[String]
List of latitudes and longitudes separated with commas. Areas separated with pipes (only available for truck mode at this time, see capability operation for informations).
speed_multiplier_area
array[Float] (float)
Speed multiplier per area, 0 avoid area. Areas separated with pipes (only available for truck mode at this time).
speed_multiplicator_area
array[Float] (float)
Deprecated, use speed_multiplier_area instead.
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
Required

Responses

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

Status: 204 - The given location is unreachable.

Status: 400 - Some required parameters are missing. E.g. you forgot to send one location

Status: 401 - Your api_key is not valid.

Status: 404 - Transportation mode is not supported. E.g. your api_key does not support this mode. Check capability operation to know authorized modes for your api key.

Status: 405 - Method not allowed. E.g. The api allows get and post method but you sent a put one.

Status: 417 - The given location is out of the supported area. E.g. in public_transport mode, your location is outside area served by city public transport.

Status: 500 - An internal server error occurred.