v1DirectionCedarmapsDrivingPairPost
/v1/direction/cedarmaps.driving/{pair}
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/cedarmaps/v1/direction/cedarmaps.driving/{pair}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DirectionApi;
import java.io.File;
import java.util.*;
public class DirectionApiExample {
public static void main(String[] args) {
DirectionApi apiInstance = new DirectionApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String apiKey = apiKey_example; // String | YOUR_API_KEY
String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
try {
inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DirectionApi;
public class DirectionApiExample {
public static void main(String[] args) {
DirectionApi apiInstance = new DirectionApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String apiKey = apiKey_example; // String | YOUR_API_KEY
String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
try {
inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *pair = pair_example; // Point pairs format are as below lat1,lon1;lat2,lon2
DirectionApi *apiInstance = [[DirectionApi alloc] init];
[apiInstance v1DirectionCedarmapsDrivingPairPostWith:apiecoKey
apiKey:apiKey
index:index
pair:pair
completionHandler: ^(inline_response_200_4 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var _ = require('_');
var api = new _.DirectionApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var apiKey = apiKey_example; // {String} YOUR_API_KEY
var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`
var pair = pair_example; // {String} Point pairs format are as below lat1,lon1;lat2,lon2
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class v1DirectionCedarmapsDrivingPairPostExample
{
public void main()
{
var apiInstance = new DirectionApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var apiKey = apiKey_example; // String | YOUR_API_KEY
var index = index_example; // String | The only supported `index` is `cedarmaps.streets`
var pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
try
{
inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DirectionApi.v1DirectionCedarmapsDrivingPairPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DirectionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
try {
$result = $api_instance->v1DirectionCedarmapsDrivingPairPost($apiecoKey, $apiKey, $index, $pair);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DirectionApi;
my $api_instance = WWW::SwaggerClient::DirectionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $pair = pair_example; # String | Point pairs format are as below lat1,lon1;lat2,lon2
eval {
my $result = $api_instance->v1DirectionCedarmapsDrivingPairPost(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, pair => $pair);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: $@\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.DirectionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
pair = pair_example # String | Point pairs format are as below lat1,lon1;lat2,lon2
try:
api_response = api_instance.v1_direction_cedarmaps_driving_pair_post(apiecoKey, apiKey, index, pair)
pprint(api_response)
except ApiException as e:
print("Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
index* |
String
The only supported `index` is `cedarmaps.streets`
Required
|
pair* |
String
Point pairs format are as below lat1,lon1;lat2,lon2
Required
|
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Api-Key* |
String
YOUR_API_KEY
Required
|