زیر ساخت یکپارچه نقشه

Autocomplete

searchAutocompletePost


/search/autocomplete

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/map-ir/search/autocomplete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AutocompleteApi;

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

public class AutocompleteApiExample {

    public static void main(String[] args) {
        
        AutocompleteApi apiInstance = new AutocompleteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        AutocompleteBody body = ; // AutocompleteBody | request for search
        try {
            AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutocompleteApi#searchAutocompletePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AutocompleteApi;

public class AutocompleteApiExample {

    public static void main(String[] args) {
        AutocompleteApi apiInstance = new AutocompleteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        AutocompleteBody body = ; // AutocompleteBody | request for search
        try {
            AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutocompleteApi#searchAutocompletePost");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
AutocompleteBody *body = ; // request for search

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

[apiInstance searchAutocompletePostWith:xApiKey
    body:body
              completionHandler: ^(AutocompleteResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.AutocompleteApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var body = ; // {AutocompleteBody} request for search


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

namespace Example
{
    public class searchAutocompletePostExample
    {
        public void main()
        {
            
            var apiInstance = new AutocompleteApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var body = new AutocompleteBody(); // AutocompleteBody | request for search

            try
            {
                AutocompleteResponse result = apiInstance.searchAutocompletePost(xApiKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AutocompleteApi.searchAutocompletePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AutocompleteApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$body = ; // AutocompleteBody | request for search

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

my $api_instance = WWW::SwaggerClient::AutocompleteApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::AutocompleteBody->new(); # AutocompleteBody | request for search

eval { 
    my $result = $api_instance->searchAutocompletePost(xApiKey => $xApiKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AutocompleteApi->searchAutocompletePost: $@\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.AutocompleteApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body =  # AutocompleteBody | request for search

try: 
    api_response = api_instance.search_autocomplete_post(xApiKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AutocompleteApi->searchAutocompletePost: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Body parameters
Name Description
body *

Responses

Status: 200 - 200 response


BicycleRoute

bicycleV1DrivingCoordinatesGet


/bicycle/v1/driving/{coordinates}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/bicycle/v1/driving/{coordinates}?alternatives=&steps=&overview="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BicycleRouteApi;

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

public class BicycleRouteApiExample {

    public static void main(String[] args) {
        
        BicycleRouteApi apiInstance = new BicycleRouteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.bicycleV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling BicycleRouteApi#bicycleV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BicycleRouteApi;

public class BicycleRouteApiExample {

    public static void main(String[] args) {
        BicycleRouteApi apiInstance = new BicycleRouteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.bicycleV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling BicycleRouteApi#bicycleV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *coordinates = coordinates_example; // String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
Boolean *alternatives = true; // Search for alternative routes and return as well. (optional) (default to true)
Boolean *steps = true; // Return route steps for each route leg (optional) (default to true)
String *overview = overview_example; // Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

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

[apiInstance bicycleV1DrivingCoordinatesGetWith:xApiKey
    coordinates:coordinates
    alternatives:alternatives
    steps:steps
    overview:overview
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.BicycleRouteApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var coordinates = coordinates_example; // {String} String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .

var opts = { 
  'alternatives': true, // {Boolean} Search for alternative routes and return as well.
  'steps': true, // {Boolean} Return route steps for each route leg
  'overview': overview_example // {String} Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
};

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

namespace Example
{
    public class bicycleV1DrivingCoordinatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new BicycleRouteApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coordinates = coordinates_example;  // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
            var alternatives = true;  // Boolean | Search for alternative routes and return as well. (optional)  (default to true)
            var steps = true;  // Boolean | Return route steps for each route leg (optional)  (default to true)
            var overview = overview_example;  // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional)  (default to false)

            try
            {
                apiInstance.bicycleV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BicycleRouteApi.bicycleV1DrivingCoordinatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BicycleRouteApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
$alternatives = true; // Boolean | Search for alternative routes and return as well.
$steps = true; // Boolean | Return route steps for each route leg
$overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

try {
    $api_instance->bicycleV1DrivingCoordinatesGet($xApiKey, $coordinates, $alternatives, $steps, $overview);
} catch (Exception $e) {
    echo 'Exception when calling BicycleRouteApi->bicycleV1DrivingCoordinatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BicycleRouteApi;

my $api_instance = WWW::SwaggerClient::BicycleRouteApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $coordinates = coordinates_example; # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
my $alternatives = true; # Boolean | Search for alternative routes and return as well.
my $steps = true; # Boolean | Return route steps for each route leg
my $overview = overview_example; # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

eval { 
    $api_instance->bicycleV1DrivingCoordinatesGet(xApiKey => $xApiKey, coordinates => $coordinates, alternatives => $alternatives, steps => $steps, overview => $overview);
};
if ($@) {
    warn "Exception when calling BicycleRouteApi->bicycleV1DrivingCoordinatesGet: $@\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.BicycleRouteApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coordinates = coordinates_example # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
alternatives = true # Boolean | Search for alternative routes and return as well. (optional) (default to true)
steps = true # Boolean | Return route steps for each route leg (optional) (default to true)
overview = overview_example # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

try: 
    api_instance.bicycle_v1_driving_coordinates_get(xApiKey, coordinates, alternatives=alternatives, steps=steps, overview=overview)
except ApiException as e:
    print("Exception when calling BicycleRouteApi->bicycleV1DrivingCoordinatesGet: %s\n" % e)

Parameters

Path parameters
Name Description
coordinates*
String
String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) .
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
alternatives
Boolean
Search for alternative routes and return as well.
steps
Boolean
Return route steps for each route leg
overview
String
Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

Responses

Status: 200 - 200 response

Status: 400 - 400 response


DistanceMatrix

distancematrixGet


/distancematrix

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/distancematrix?origins=&destinations=&sorted=&$filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DistanceMatrixApi;

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

public class DistanceMatrixApiExample {

    public static void main(String[] args) {
        
        DistanceMatrixApi apiInstance = new DistanceMatrixApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String origins = origins_example; // String | origin points, format must be like id,lat,lon and each points must separate by |
        String destinations = destinations_example; // String | destination points, format must be like id,lat,lon and each points must separate by |
        Boolean sorted = true; // Boolean | if you want to sort based on distance, duration
        String $filter = $filter_example; // String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'
        try {
            DistanceMatrix result = apiInstance.distancematrixGet(xApiKey, origins, destinations, sorted, $filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DistanceMatrixApi#distancematrixGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DistanceMatrixApi;

public class DistanceMatrixApiExample {

    public static void main(String[] args) {
        DistanceMatrixApi apiInstance = new DistanceMatrixApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String origins = origins_example; // String | origin points, format must be like id,lat,lon and each points must separate by |
        String destinations = destinations_example; // String | destination points, format must be like id,lat,lon and each points must separate by |
        Boolean sorted = true; // Boolean | if you want to sort based on distance, duration
        String $filter = $filter_example; // String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'
        try {
            DistanceMatrix result = apiInstance.distancematrixGet(xApiKey, origins, destinations, sorted, $filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DistanceMatrixApi#distancematrixGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *origins = origins_example; // origin points, format must be like id,lat,lon and each points must separate by | (default to b,35.704965,51.355551|1,35.706826,51.347341|d,35.706826,51.347341)
String *destinations = destinations_example; // destination points, format must be like id,lat,lon and each points must separate by | (default to c,35.720104,51.399038)
Boolean *sorted = true; // if you want to sort based on distance, duration (optional) (default to false)
String *$filter = $filter_example; // set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration' (optional)

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

[apiInstance distancematrixGetWith:xApiKey
    origins:origins
    destinations:destinations
    sorted:sorted
    $filter:$filter
              completionHandler: ^(DistanceMatrix output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.DistanceMatrixApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var origins = origins_example; // {String} origin points, format must be like id,lat,lon and each points must separate by |

var destinations = destinations_example; // {String} destination points, format must be like id,lat,lon and each points must separate by |

var opts = { 
  'sorted': true, // {Boolean} if you want to sort based on distance, duration
  '$filter': $filter_example // {String} set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'
};

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

namespace Example
{
    public class distancematrixGetExample
    {
        public void main()
        {
            
            var apiInstance = new DistanceMatrixApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var origins = origins_example;  // String | origin points, format must be like id,lat,lon and each points must separate by | (default to b,35.704965,51.355551|1,35.706826,51.347341|d,35.706826,51.347341)
            var destinations = destinations_example;  // String | destination points, format must be like id,lat,lon and each points must separate by | (default to c,35.720104,51.399038)
            var sorted = true;  // Boolean | if you want to sort based on distance, duration (optional)  (default to false)
            var $filter = $filter_example;  // String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration' (optional) 

            try
            {
                DistanceMatrix result = apiInstance.distancematrixGet(xApiKey, origins, destinations, sorted, $filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DistanceMatrixApi.distancematrixGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DistanceMatrixApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$origins = origins_example; // String | origin points, format must be like id,lat,lon and each points must separate by |
$destinations = destinations_example; // String | destination points, format must be like id,lat,lon and each points must separate by |
$sorted = true; // Boolean | if you want to sort based on distance, duration
$$filter = $filter_example; // String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'

try {
    $result = $api_instance->distancematrixGet($xApiKey, $origins, $destinations, $sorted, $$filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DistanceMatrixApi->distancematrixGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DistanceMatrixApi;

my $api_instance = WWW::SwaggerClient::DistanceMatrixApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $origins = origins_example; # String | origin points, format must be like id,lat,lon and each points must separate by |
my $destinations = destinations_example; # String | destination points, format must be like id,lat,lon and each points must separate by |
my $sorted = true; # Boolean | if you want to sort based on distance, duration
my $$filter = $filter_example; # String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'

eval { 
    my $result = $api_instance->distancematrixGet(xApiKey => $xApiKey, origins => $origins, destinations => $destinations, sorted => $sorted, $filter => $$filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DistanceMatrixApi->distancematrixGet: $@\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.DistanceMatrixApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
origins = origins_example # String | origin points, format must be like id,lat,lon and each points must separate by | (default to b,35.704965,51.355551|1,35.706826,51.347341|d,35.706826,51.347341)
destinations = destinations_example # String | destination points, format must be like id,lat,lon and each points must separate by | (default to c,35.720104,51.399038)
sorted = true # Boolean | if you want to sort based on distance, duration (optional) (default to false)
$filter = $filter_example # String | set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration' (optional)

try: 
    api_response = api_instance.distancematrix_get(xApiKey, origins, destinations, sorted=sorted, $filter=$filter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DistanceMatrixApi->distancematrixGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
origins*
String
origin points, format must be like id,lat,lon and each points must separate by |
Required
destinations*
String
destination points, format must be like id,lat,lon and each points must separate by |
Required
sorted
Boolean
if you want to sort based on distance, duration
$filter
String
set distance matrix type; can be distance or duration, if $filter is empty distance and duration will be return; can be 'type eq distance' or 'type eq duration'

Responses

Status: 200 - Distance Matrix of points

{distance=[{origin_index=d, destination_index=c, distance=7771.6}, {origin_index=1, destination_index=c, distance=7771.6}, {origin_index=b, destination_index=c, distance=951044.3}], duration=[{origin_index=d, destination_index=c, duration=889.5}, {origin_index=1, destination_index=c, duration=889.5}, {origin_index=b, destination_index=c, duration=40608.6}], origins={1={name=حمید صالحی, province_name=تهران, county_name=تهران, district_title=, ruraldistrict_title=تهران, suburb_title=منطقه ۲, neighbourhood_title=محله طرشت}, d={name=حمید صالحی, province_name=تهران, county_name=تهران, district_title=, ruraldistrict_title=تهران, suburb_title=منطقه ۲, neighbourhood_title=محله طرشت}, b={name=, province_name=آذربایجان غربی, county_name=ماکو, district_title=بازرگان, ruraldistrict_title=چایباسارشمالی, suburb_title=, neighbourhood_title=}}, destinations={c={name=شهریور, province_name=تهران, county_name=تهران, district_title=, ruraldistrict_title=تهران, suburb_title=منطقه ۶, neighbourhood_title=محله آل احمد (فاطمي)}}}

Status: 400 - bad request

Status: 404 - not found


FastReverseGeocode

getFastReverse

get address of given point


/fast-reverse

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/fast-reverse?lat=&lon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FastReverseGeocodeApi;

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

public class FastReverseGeocodeApiExample {

    public static void main(String[] args) {
        
        FastReverseGeocodeApi apiInstance = new FastReverseGeocodeApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.getFastReverse(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FastReverseGeocodeApi#getFastReverse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FastReverseGeocodeApi;

public class FastReverseGeocodeApiExample {

    public static void main(String[] args) {
        FastReverseGeocodeApi apiInstance = new FastReverseGeocodeApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.getFastReverse(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FastReverseGeocodeApi#getFastReverse");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
BigDecimal *lat = 8.14; // latitude of point (default to 35.732474329636865)
BigDecimal *lon = 8.14; // longitude of point (default to 51.42287135124207)

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

// get address of given point
[apiInstance getFastReverseWith:xApiKey
    lat:lat
    lon:lon
              completionHandler: ^(ReverseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.FastReverseGeocodeApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var lat = 8.14; // {BigDecimal} latitude of point

var lon = 8.14; // {BigDecimal} longitude of point


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

namespace Example
{
    public class getFastReverseExample
    {
        public void main()
        {
            
            var apiInstance = new FastReverseGeocodeApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var lat = 8.14;  // BigDecimal | latitude of point (default to 35.732474329636865)
            var lon = 8.14;  // BigDecimal | longitude of point (default to 51.42287135124207)

            try
            {
                // get address of given point
                ReverseResponse result = apiInstance.getFastReverse(xApiKey, lat, lon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FastReverseGeocodeApi.getFastReverse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FastReverseGeocodeApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$lat = 8.14; // BigDecimal | latitude of point
$lon = 8.14; // BigDecimal | longitude of point

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

my $api_instance = WWW::SwaggerClient::FastReverseGeocodeApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $lat = 8.14; # BigDecimal | latitude of point
my $lon = 8.14; # BigDecimal | longitude of point

eval { 
    my $result = $api_instance->getFastReverse(xApiKey => $xApiKey, lat => $lat, lon => $lon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FastReverseGeocodeApi->getFastReverse: $@\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.FastReverseGeocodeApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
lat = 8.14 # BigDecimal | latitude of point (default to 35.732474329636865)
lon = 8.14 # BigDecimal | longitude of point (default to 51.42287135124207)

try: 
    # get address of given point
    api_response = api_instance.get_fast_reverse(xApiKey, lat, lon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FastReverseGeocodeApi->getFastReverse: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
lat*
BigDecimal
latitude of point
Required
lon*
BigDecimal
longitude of point
Required

Responses

Status: 200 - Address of point

Status: 400 - bad request

Status: 404 - not found


FootRoute

footV1DrivingCoordinatesGet


/foot/v1/driving/{coordinates}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/foot/v1/driving/{coordinates}?alternatives=&steps=&overview="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FootRouteApi;

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

public class FootRouteApiExample {

    public static void main(String[] args) {
        
        FootRouteApi apiInstance = new FootRouteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.footV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling FootRouteApi#footV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FootRouteApi;

public class FootRouteApiExample {

    public static void main(String[] args) {
        FootRouteApi apiInstance = new FootRouteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.footV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling FootRouteApi#footV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *coordinates = coordinates_example; // String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
Boolean *alternatives = true; // Search for alternative routes and return as well. (optional) (default to true)
Boolean *steps = true; // Return route steps for each route leg (optional) (default to true)
String *overview = overview_example; // Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

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

[apiInstance footV1DrivingCoordinatesGetWith:xApiKey
    coordinates:coordinates
    alternatives:alternatives
    steps:steps
    overview:overview
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.FootRouteApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var coordinates = coordinates_example; // {String} String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .

var opts = { 
  'alternatives': true, // {Boolean} Search for alternative routes and return as well.
  'steps': true, // {Boolean} Return route steps for each route leg
  'overview': overview_example // {String} Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
};

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

namespace Example
{
    public class footV1DrivingCoordinatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new FootRouteApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coordinates = coordinates_example;  // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
            var alternatives = true;  // Boolean | Search for alternative routes and return as well. (optional)  (default to true)
            var steps = true;  // Boolean | Return route steps for each route leg (optional)  (default to true)
            var overview = overview_example;  // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional)  (default to false)

            try
            {
                apiInstance.footV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FootRouteApi.footV1DrivingCoordinatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FootRouteApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
$alternatives = true; // Boolean | Search for alternative routes and return as well.
$steps = true; // Boolean | Return route steps for each route leg
$overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

try {
    $api_instance->footV1DrivingCoordinatesGet($xApiKey, $coordinates, $alternatives, $steps, $overview);
} catch (Exception $e) {
    echo 'Exception when calling FootRouteApi->footV1DrivingCoordinatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FootRouteApi;

my $api_instance = WWW::SwaggerClient::FootRouteApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $coordinates = coordinates_example; # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
my $alternatives = true; # Boolean | Search for alternative routes and return as well.
my $steps = true; # Boolean | Return route steps for each route leg
my $overview = overview_example; # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

eval { 
    $api_instance->footV1DrivingCoordinatesGet(xApiKey => $xApiKey, coordinates => $coordinates, alternatives => $alternatives, steps => $steps, overview => $overview);
};
if ($@) {
    warn "Exception when calling FootRouteApi->footV1DrivingCoordinatesGet: $@\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.FootRouteApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coordinates = coordinates_example # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
alternatives = true # Boolean | Search for alternative routes and return as well. (optional) (default to true)
steps = true # Boolean | Return route steps for each route leg (optional) (default to true)
overview = overview_example # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

try: 
    api_instance.foot_v1_driving_coordinates_get(xApiKey, coordinates, alternatives=alternatives, steps=steps, overview=overview)
except ApiException as e:
    print("Exception when calling FootRouteApi->footV1DrivingCoordinatesGet: %s\n" % e)

Parameters

Path parameters
Name Description
coordinates*
String
String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) .
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
alternatives
Boolean
Search for alternative routes and return as well.
steps
Boolean
Return route steps for each route leg
overview
String
Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

Responses

Status: 200 - 200 response

Status: 400 - 400 response


Geofence

boundariesGet

get polygons that contain point


/boundaries

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/boundaries?lat=&lon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GeofenceApi;

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

public class GeofenceApiExample {

    public static void main(String[] args) {
        
        GeofenceApi apiInstance = new GeofenceApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            GetAllBoundaries result = apiInstance.boundariesGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeofenceApi#boundariesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GeofenceApi;

public class GeofenceApiExample {

    public static void main(String[] args) {
        GeofenceApi apiInstance = new GeofenceApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            GetAllBoundaries result = apiInstance.boundariesGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeofenceApi#boundariesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
BigDecimal *lat = 8.14; // latitude of point (default to 35.732474329636865)
BigDecimal *lon = 8.14; // longitude of point (default to 51.42287135124207)

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

// get polygons that contain point
[apiInstance boundariesGetWith:xApiKey
    lat:lat
    lon:lon
              completionHandler: ^(GetAllBoundaries output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.GeofenceApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var lat = 8.14; // {BigDecimal} latitude of point

var lon = 8.14; // {BigDecimal} longitude of point


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

namespace Example
{
    public class boundariesGetExample
    {
        public void main()
        {
            
            var apiInstance = new GeofenceApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var lat = 8.14;  // BigDecimal | latitude of point (default to 35.732474329636865)
            var lon = 8.14;  // BigDecimal | longitude of point (default to 51.42287135124207)

            try
            {
                // get polygons that contain point
                GetAllBoundaries result = apiInstance.boundariesGet(xApiKey, lat, lon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GeofenceApi.boundariesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GeofenceApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$lat = 8.14; // BigDecimal | latitude of point
$lon = 8.14; // BigDecimal | longitude of point

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

my $api_instance = WWW::SwaggerClient::GeofenceApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $lat = 8.14; # BigDecimal | latitude of point
my $lon = 8.14; # BigDecimal | longitude of point

eval { 
    my $result = $api_instance->boundariesGet(xApiKey => $xApiKey, lat => $lat, lon => $lon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GeofenceApi->boundariesGet: $@\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.GeofenceApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
lat = 8.14 # BigDecimal | latitude of point (default to 35.732474329636865)
lon = 8.14 # BigDecimal | longitude of point (default to 51.42287135124207)

try: 
    # get polygons that contain point
    api_response = api_instance.boundaries_get(xApiKey, lat, lon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeofenceApi->boundariesGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
lat*
BigDecimal
latitude of point
Required
lon*
BigDecimal
longitude of point
Required

Responses

Status: 200 - Address of point

Status: 400 - bad request

Status: 404 - not found


ReverseGeocode

reverseGet

get address of given point


/reverse

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/reverse?lat=&lon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReverseGeocodeApi;

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

public class ReverseGeocodeApiExample {

    public static void main(String[] args) {
        
        ReverseGeocodeApi apiInstance = new ReverseGeocodeApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.reverseGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodeApi#reverseGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReverseGeocodeApi;

public class ReverseGeocodeApiExample {

    public static void main(String[] args) {
        ReverseGeocodeApi apiInstance = new ReverseGeocodeApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.reverseGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodeApi#reverseGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
BigDecimal *lat = 8.14; // latitude of point (default to 35.732474329636865)
BigDecimal *lon = 8.14; // longitude of point (default to 51.42287135124207)

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

// get address of given point
[apiInstance reverseGetWith:xApiKey
    lat:lat
    lon:lon
              completionHandler: ^(ReverseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.ReverseGeocodeApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var lat = 8.14; // {BigDecimal} latitude of point

var lon = 8.14; // {BigDecimal} longitude of point


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

namespace Example
{
    public class reverseGetExample
    {
        public void main()
        {
            
            var apiInstance = new ReverseGeocodeApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var lat = 8.14;  // BigDecimal | latitude of point (default to 35.732474329636865)
            var lon = 8.14;  // BigDecimal | longitude of point (default to 51.42287135124207)

            try
            {
                // get address of given point
                ReverseResponse result = apiInstance.reverseGet(xApiKey, lat, lon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReverseGeocodeApi.reverseGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ReverseGeocodeApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$lat = 8.14; // BigDecimal | latitude of point
$lon = 8.14; // BigDecimal | longitude of point

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

my $api_instance = WWW::SwaggerClient::ReverseGeocodeApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $lat = 8.14; # BigDecimal | latitude of point
my $lon = 8.14; # BigDecimal | longitude of point

eval { 
    my $result = $api_instance->reverseGet(xApiKey => $xApiKey, lat => $lat, lon => $lon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReverseGeocodeApi->reverseGet: $@\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.ReverseGeocodeApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
lat = 8.14 # BigDecimal | latitude of point (default to 35.732474329636865)
lon = 8.14 # BigDecimal | longitude of point (default to 51.42287135124207)

try: 
    # get address of given point
    api_response = api_instance.reverse_get(xApiKey, lat, lon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseGeocodeApi->reverseGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
lat*
BigDecimal
latitude of point
Required
lon*
BigDecimal
longitude of point
Required

Responses

Status: 200 - Address of point

Status: 400 - bad request

Status: 404 - not found


ReverseGeocodingWithPlaque

reverseNoGet

get address of given point


/reverse/no

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/reverse/no?lat=&lon="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReverseGeocodingWithPlaqueApi;

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

public class ReverseGeocodingWithPlaqueApiExample {

    public static void main(String[] args) {
        
        ReverseGeocodingWithPlaqueApi apiInstance = new ReverseGeocodingWithPlaqueApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.reverseNoGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodingWithPlaqueApi#reverseNoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReverseGeocodingWithPlaqueApi;

public class ReverseGeocodingWithPlaqueApiExample {

    public static void main(String[] args) {
        ReverseGeocodingWithPlaqueApi apiInstance = new ReverseGeocodingWithPlaqueApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        BigDecimal lat = 8.14; // BigDecimal | latitude of point
        BigDecimal lon = 8.14; // BigDecimal | longitude of point
        try {
            ReverseResponse result = apiInstance.reverseNoGet(xApiKey, lat, lon);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodingWithPlaqueApi#reverseNoGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
BigDecimal *lat = 8.14; // latitude of point (default to 35.7447352857711)
BigDecimal *lon = 8.14; // longitude of point (default to 51.2297075935295)

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

// get address of given point
[apiInstance reverseNoGetWith:xApiKey
    lat:lat
    lon:lon
              completionHandler: ^(ReverseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.ReverseGeocodingWithPlaqueApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var lat = 8.14; // {BigDecimal} latitude of point

var lon = 8.14; // {BigDecimal} longitude of point


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

namespace Example
{
    public class reverseNoGetExample
    {
        public void main()
        {
            
            var apiInstance = new ReverseGeocodingWithPlaqueApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var lat = 8.14;  // BigDecimal | latitude of point (default to 35.7447352857711)
            var lon = 8.14;  // BigDecimal | longitude of point (default to 51.2297075935295)

            try
            {
                // get address of given point
                ReverseResponse result = apiInstance.reverseNoGet(xApiKey, lat, lon);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReverseGeocodingWithPlaqueApi.reverseNoGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ReverseGeocodingWithPlaqueApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$lat = 8.14; // BigDecimal | latitude of point
$lon = 8.14; // BigDecimal | longitude of point

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

my $api_instance = WWW::SwaggerClient::ReverseGeocodingWithPlaqueApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $lat = 8.14; # BigDecimal | latitude of point
my $lon = 8.14; # BigDecimal | longitude of point

eval { 
    my $result = $api_instance->reverseNoGet(xApiKey => $xApiKey, lat => $lat, lon => $lon);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReverseGeocodingWithPlaqueApi->reverseNoGet: $@\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.ReverseGeocodingWithPlaqueApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
lat = 8.14 # BigDecimal | latitude of point (default to 35.7447352857711)
lon = 8.14 # BigDecimal | longitude of point (default to 51.2297075935295)

try: 
    # get address of given point
    api_response = api_instance.reverse_no_get(xApiKey, lat, lon)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseGeocodingWithPlaqueApi->reverseNoGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
lat*
BigDecimal
latitude of point
Required
lon*
BigDecimal
longitude of point
Required

Responses

Status: 200 - Address of point

Status: 400 - bad request

Status: 404 - not found


Route

routeV1DrivingCoordinatesGet


/route/v1/driving/{coordinates}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/route/v1/driving/{coordinates}?alternatives=&steps=&overview="
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();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.routeV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteApi#routeV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RouteApi;

public class RouteApiExample {

    public static void main(String[] args) {
        RouteApi apiInstance = new RouteApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        String overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.routeV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteApi#routeV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *coordinates = coordinates_example; // String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
Boolean *alternatives = true; // Search for alternative routes and return as well. (optional) (default to true)
Boolean *steps = true; // Return route steps for each route leg (optional) (default to true)
String *overview = overview_example; // Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

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

[apiInstance routeV1DrivingCoordinatesGetWith:xApiKey
    coordinates:coordinates
    alternatives:alternatives
    steps:steps
    overview:overview
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.RouteApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var coordinates = coordinates_example; // {String} String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .

var opts = { 
  'alternatives': true, // {Boolean} Search for alternative routes and return as well.
  'steps': true, // {Boolean} Return route steps for each route leg
  'overview': overview_example // {String} Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
};

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

namespace Example
{
    public class routeV1DrivingCoordinatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new RouteApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coordinates = coordinates_example;  // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
            var alternatives = true;  // Boolean | Search for alternative routes and return as well. (optional)  (default to true)
            var steps = true;  // Boolean | Return route steps for each route leg (optional)  (default to true)
            var overview = overview_example;  // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional)  (default to false)

            try
            {
                apiInstance.routeV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RouteApi.routeV1DrivingCoordinatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RouteApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
$alternatives = true; // Boolean | Search for alternative routes and return as well.
$steps = true; // Boolean | Return route steps for each route leg
$overview = overview_example; // String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

try {
    $api_instance->routeV1DrivingCoordinatesGet($xApiKey, $coordinates, $alternatives, $steps, $overview);
} catch (Exception $e) {
    echo 'Exception when calling RouteApi->routeV1DrivingCoordinatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RouteApi;

my $api_instance = WWW::SwaggerClient::RouteApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $coordinates = coordinates_example; # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
my $alternatives = true; # Boolean | Search for alternative routes and return as well.
my $steps = true; # Boolean | Return route steps for each route leg
my $overview = overview_example; # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

eval { 
    $api_instance->routeV1DrivingCoordinatesGet(xApiKey => $xApiKey, coordinates => $coordinates, alternatives => $alternatives, steps => $steps, overview => $overview);
};
if ($@) {
    warn "Exception when calling RouteApi->routeV1DrivingCoordinatesGet: $@\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()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coordinates = coordinates_example # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
alternatives = true # Boolean | Search for alternative routes and return as well. (optional) (default to true)
steps = true # Boolean | Return route steps for each route leg (optional) (default to true)
overview = overview_example # String | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

try: 
    api_instance.route_v1_driving_coordinates_get(xApiKey, coordinates, alternatives=alternatives, steps=steps, overview=overview)
except ApiException as e:
    print("Exception when calling RouteApi->routeV1DrivingCoordinatesGet: %s\n" % e)

Parameters

Path parameters
Name Description
coordinates*
String
String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) .
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
alternatives
Boolean
Search for alternative routes and return as well.
steps
Boolean
Return route steps for each route leg
overview
String
Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

Responses

Status: 200 - 200 response

Status: 400 - 400 response


RouteBasedOnTarh

tarhV1DrivingCoordinatesGet


/tarh/v1/driving/{coordinates}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/tarh/v1/driving/{coordinates}?alternatives=&steps=&overview="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RouteBasedOnTarhApi;

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

public class RouteBasedOnTarhApiExample {

    public static void main(String[] args) {
        
        RouteBasedOnTarhApi apiInstance = new RouteBasedOnTarhApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        Boolean overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.tarhV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteBasedOnTarhApi#tarhV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RouteBasedOnTarhApi;

public class RouteBasedOnTarhApiExample {

    public static void main(String[] args) {
        RouteBasedOnTarhApi apiInstance = new RouteBasedOnTarhApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        Boolean overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.tarhV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteBasedOnTarhApi#tarhV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *coordinates = coordinates_example; // String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
Boolean *alternatives = true; // Search for alternative routes and return as well. (optional) (default to true)
Boolean *steps = true; // Return route steps for each route leg (optional) (default to true)
Boolean *overview = true; // Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

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

[apiInstance tarhV1DrivingCoordinatesGetWith:xApiKey
    coordinates:coordinates
    alternatives:alternatives
    steps:steps
    overview:overview
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.RouteBasedOnTarhApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var coordinates = coordinates_example; // {String} String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .

var opts = { 
  'alternatives': true, // {Boolean} Search for alternative routes and return as well.
  'steps': true, // {Boolean} Return route steps for each route leg
  'overview': true // {Boolean} Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
};

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

namespace Example
{
    public class tarhV1DrivingCoordinatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new RouteBasedOnTarhApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coordinates = coordinates_example;  // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
            var alternatives = true;  // Boolean | Search for alternative routes and return as well. (optional)  (default to true)
            var steps = true;  // Boolean | Return route steps for each route leg (optional)  (default to true)
            var overview = true;  // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional)  (default to false)

            try
            {
                apiInstance.tarhV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RouteBasedOnTarhApi.tarhV1DrivingCoordinatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RouteBasedOnTarhApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
$alternatives = true; // Boolean | Search for alternative routes and return as well.
$steps = true; // Boolean | Return route steps for each route leg
$overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

try {
    $api_instance->tarhV1DrivingCoordinatesGet($xApiKey, $coordinates, $alternatives, $steps, $overview);
} catch (Exception $e) {
    echo 'Exception when calling RouteBasedOnTarhApi->tarhV1DrivingCoordinatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RouteBasedOnTarhApi;

my $api_instance = WWW::SwaggerClient::RouteBasedOnTarhApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $coordinates = coordinates_example; # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
my $alternatives = true; # Boolean | Search for alternative routes and return as well.
my $steps = true; # Boolean | Return route steps for each route leg
my $overview = true; # Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

eval { 
    $api_instance->tarhV1DrivingCoordinatesGet(xApiKey => $xApiKey, coordinates => $coordinates, alternatives => $alternatives, steps => $steps, overview => $overview);
};
if ($@) {
    warn "Exception when calling RouteBasedOnTarhApi->tarhV1DrivingCoordinatesGet: $@\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.RouteBasedOnTarhApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coordinates = coordinates_example # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
alternatives = true # Boolean | Search for alternative routes and return as well. (optional) (default to true)
steps = true # Boolean | Return route steps for each route leg (optional) (default to true)
overview = true # Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

try: 
    api_instance.tarh_v1_driving_coordinates_get(xApiKey, coordinates, alternatives=alternatives, steps=steps, overview=overview)
except ApiException as e:
    print("Exception when calling RouteBasedOnTarhApi->tarhV1DrivingCoordinatesGet: %s\n" % e)

Parameters

Path parameters
Name Description
coordinates*
String
String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) .
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
alternatives
Boolean
Search for alternative routes and return as well.
steps
Boolean
Return route steps for each route leg
overview
Boolean
Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

Responses

Status: 200 - 200 response

Status: 400 - 400 response


zojofardV1DrivingCoordinatesGet


/zojofard/v1/driving/{coordinates}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/zojofard/v1/driving/{coordinates}?alternatives=&steps=&overview="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RouteBasedOnTarhApi;

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

public class RouteBasedOnTarhApiExample {

    public static void main(String[] args) {
        
        RouteBasedOnTarhApi apiInstance = new RouteBasedOnTarhApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        Boolean overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.zojofardV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteBasedOnTarhApi#zojofardV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RouteBasedOnTarhApi;

public class RouteBasedOnTarhApiExample {

    public static void main(String[] args) {
        RouteBasedOnTarhApi apiInstance = new RouteBasedOnTarhApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        String coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
        Boolean alternatives = true; // Boolean | Search for alternative routes and return as well.
        Boolean steps = true; // Boolean | Return route steps for each route leg
        Boolean overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
        try {
            apiInstance.zojofardV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
        } catch (ApiException e) {
            System.err.println("Exception when calling RouteBasedOnTarhApi#zojofardV1DrivingCoordinatesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *coordinates = coordinates_example; // String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
Boolean *alternatives = true; // Search for alternative routes and return as well. (optional) (default to true)
Boolean *steps = true; // Return route steps for each route leg (optional) (default to true)
Boolean *overview = true; // Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

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

[apiInstance zojofardV1DrivingCoordinatesGetWith:xApiKey
    coordinates:coordinates
    alternatives:alternatives
    steps:steps
    overview:overview
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.RouteBasedOnTarhApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var coordinates = coordinates_example; // {String} String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .

var opts = { 
  'alternatives': true, // {Boolean} Search for alternative routes and return as well.
  'steps': true, // {Boolean} Return route steps for each route leg
  'overview': true // {Boolean} Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.
};

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

namespace Example
{
    public class zojofardV1DrivingCoordinatesGetExample
    {
        public void main()
        {
            
            var apiInstance = new RouteBasedOnTarhApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coordinates = coordinates_example;  // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
            var alternatives = true;  // Boolean | Search for alternative routes and return as well. (optional)  (default to true)
            var steps = true;  // Boolean | Return route steps for each route leg (optional)  (default to true)
            var overview = true;  // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional)  (default to false)

            try
            {
                apiInstance.zojofardV1DrivingCoordinatesGet(xApiKey, coordinates, alternatives, steps, overview);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RouteBasedOnTarhApi.zojofardV1DrivingCoordinatesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RouteBasedOnTarhApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$coordinates = coordinates_example; // String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
$alternatives = true; // Boolean | Search for alternative routes and return as well.
$steps = true; // Boolean | Return route steps for each route leg
$overview = true; // Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

try {
    $api_instance->zojofardV1DrivingCoordinatesGet($xApiKey, $coordinates, $alternatives, $steps, $overview);
} catch (Exception $e) {
    echo 'Exception when calling RouteBasedOnTarhApi->zojofardV1DrivingCoordinatesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RouteBasedOnTarhApi;

my $api_instance = WWW::SwaggerClient::RouteBasedOnTarhApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $coordinates = coordinates_example; # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
my $alternatives = true; # Boolean | Search for alternative routes and return as well.
my $steps = true; # Boolean | Return route steps for each route leg
my $overview = true; # Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

eval { 
    $api_instance->zojofardV1DrivingCoordinatesGet(xApiKey => $xApiKey, coordinates => $coordinates, alternatives => $alternatives, steps => $steps, overview => $overview);
};
if ($@) {
    warn "Exception when calling RouteBasedOnTarhApi->zojofardV1DrivingCoordinatesGet: $@\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.RouteBasedOnTarhApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coordinates = coordinates_example # String | String of format  {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or  polyline({polyline}) .
alternatives = true # Boolean | Search for alternative routes and return as well. (optional) (default to true)
steps = true # Boolean | Return route steps for each route leg (optional) (default to true)
overview = true # Boolean | Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. (optional) (default to false)

try: 
    api_instance.zojofard_v1_driving_coordinates_get(xApiKey, coordinates, alternatives=alternatives, steps=steps, overview=overview)
except ApiException as e:
    print("Exception when calling RouteBasedOnTarhApi->zojofardV1DrivingCoordinatesGet: %s\n" % e)

Parameters

Path parameters
Name Description
coordinates*
String
String of format {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] or polyline({polyline}) .
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
alternatives
Boolean
Search for alternative routes and return as well.
steps
Boolean
Return route steps for each route leg
overview
Boolean
Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all.

Responses

Status: 200 - 200 response

Status: 400 - 400 response


Stage

stagesGet

get all boundaries


/stages

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/stages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StageApi;

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

public class StageApiExample {

    public static void main(String[] args) {
        
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        try {
            GetAllBoundaries result = apiInstance.stagesGet(xApiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StageApi;

public class StageApiExample {

    public static void main(String[] args) {
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        try {
            GetAllBoundaries result = apiInstance.stagesGet(xApiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

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

// get all boundaries
[apiInstance stagesGetWith:xApiKey
              completionHandler: ^(GetAllBoundaries output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.StageApi()

var xApiKey = xApiKey_example; // {String} apikey for use API


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

namespace Example
{
    public class stagesGetExample
    {
        public void main()
        {
            
            var apiInstance = new StageApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                // get all boundaries
                GetAllBoundaries result = apiInstance.stagesGet(xApiKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StageApi.stagesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StageApi();
$xApiKey = xApiKey_example; // String | apikey for use API

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

my $api_instance = WWW::SwaggerClient::StageApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API

eval { 
    my $result = $api_instance->stagesGet(xApiKey => $xApiKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StageApi->stagesGet: $@\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.StageApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    # get all boundaries
    api_response = api_instance.stages_get(xApiKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StageApi->stagesGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required

Responses

Status: 200 - array of boundaries

Status: 400 - bad request

Status: 404 - not found


stagesIdDelete

delete one boundary


/stages/{id}

Usage and SDK Samples

curl -X DELETE "https://api.apieco.ir/map-ir/stages/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StageApi;

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

public class StageApiExample {

    public static void main(String[] args) {
        
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer id = 56; // Integer | id of polygon
        try {
            DeleteBoundary result = apiInstance.stagesIdDelete(xApiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StageApi;

public class StageApiExample {

    public static void main(String[] args) {
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer id = 56; // Integer | id of polygon
        try {
            DeleteBoundary result = apiInstance.stagesIdDelete(xApiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesIdDelete");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Integer *id = 56; // id of polygon

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

// delete one boundary
[apiInstance stagesIdDeleteWith:xApiKey
    id:id
              completionHandler: ^(DeleteBoundary output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.StageApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var id = 56; // {Integer} id of polygon


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

namespace Example
{
    public class stagesIdDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new StageApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var id = 56;  // Integer | id of polygon

            try
            {
                // delete one boundary
                DeleteBoundary result = apiInstance.stagesIdDelete(xApiKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StageApi.stagesIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StageApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$id = 56; // Integer | id of polygon

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

my $api_instance = WWW::SwaggerClient::StageApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $id = 56; # Integer | id of polygon

eval { 
    my $result = $api_instance->stagesIdDelete(xApiKey => $xApiKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StageApi->stagesIdDelete: $@\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.StageApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
id = 56 # Integer | id of polygon

try: 
    # delete one boundary
    api_response = api_instance.stages_id_delete(xApiKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StageApi->stagesIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
id of polygon
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required

Responses

Status: 200 - object of boundaries

Status: 400 - bad request

Status: 404 - not found


stagesIdGet

get one boundary


/stages/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/stages/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StageApi;

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

public class StageApiExample {

    public static void main(String[] args) {
        
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer id = 56; // Integer | id of polygon
        try {
            GetOneBoundary result = apiInstance.stagesIdGet(xApiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StageApi;

public class StageApiExample {

    public static void main(String[] args) {
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer id = 56; // Integer | id of polygon
        try {
            GetOneBoundary result = apiInstance.stagesIdGet(xApiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesIdGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Integer *id = 56; // id of polygon

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

// get one boundary
[apiInstance stagesIdGetWith:xApiKey
    id:id
              completionHandler: ^(GetOneBoundary output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.StageApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var id = 56; // {Integer} id of polygon


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

namespace Example
{
    public class stagesIdGetExample
    {
        public void main()
        {
            
            var apiInstance = new StageApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var id = 56;  // Integer | id of polygon

            try
            {
                // get one boundary
                GetOneBoundary result = apiInstance.stagesIdGet(xApiKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StageApi.stagesIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StageApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$id = 56; // Integer | id of polygon

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

my $api_instance = WWW::SwaggerClient::StageApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $id = 56; # Integer | id of polygon

eval { 
    my $result = $api_instance->stagesIdGet(xApiKey => $xApiKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StageApi->stagesIdGet: $@\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.StageApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
id = 56 # Integer | id of polygon

try: 
    # get one boundary
    api_response = api_instance.stages_id_get(xApiKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StageApi->stagesIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
id of polygon
Required
Header parameters
Name Description
x-api-key*
String
apikey for use API
Required

Responses

Status: 200 - object of boundaries

Status: 400 - bad request

Status: 404 - not found


stagesPost

upload new geofence boundary


/stages

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/map-ir/stages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StageApi;

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

public class StageApiExample {

    public static void main(String[] args) {
        
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        File polygons = /path/to/file.txt; // File | geojson file
        try {
            200Message result = apiInstance.stagesPost(xApiKey, polygons);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StageApi;

public class StageApiExample {

    public static void main(String[] args) {
        StageApi apiInstance = new StageApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        File polygons = /path/to/file.txt; // File | geojson file
        try {
            200Message result = apiInstance.stagesPost(xApiKey, polygons);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StageApi#stagesPost");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
File *polygons = /path/to/file.txt; // geojson file (optional)

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

// upload new geofence boundary
[apiInstance stagesPostWith:xApiKey
    polygons:polygons
              completionHandler: ^(200Message output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.StageApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var opts = { 
  'polygons': /path/to/file.txt // {File} geojson file
};

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

namespace Example
{
    public class stagesPostExample
    {
        public void main()
        {
            
            var apiInstance = new StageApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var polygons = new File(); // File | geojson file (optional) 

            try
            {
                // upload new geofence boundary
                200Message result = apiInstance.stagesPost(xApiKey, polygons);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StageApi.stagesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StageApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$polygons = /path/to/file.txt; // File | geojson file

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

my $api_instance = WWW::SwaggerClient::StageApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $polygons = /path/to/file.txt; # File | geojson file

eval { 
    my $result = $api_instance->stagesPost(xApiKey => $xApiKey, polygons => $polygons);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StageApi->stagesPost: $@\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.StageApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
polygons = /path/to/file.txt # File | geojson file (optional)

try: 
    # upload new geofence boundary
    api_response = api_instance.stages_post(xApiKey, polygons=polygons)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StageApi->stagesPost: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Form parameters
Name Description
polygons
File
geojson file

Responses

Status: 200 - Address of point

Status: 400 - bad request

Status: 404 - not found


StaticMap

staticGet

Static Map API


/static

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/map-ir/static?width=&height=&zoom_level=&markers="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StaticMapApi;

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

public class StaticMapApiExample {

    public static void main(String[] args) {
        
        StaticMapApi apiInstance = new StaticMapApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer width = 56; // Integer | pixel size width
        Integer height = 56; // Integer | pixel size height
        Integer zoomLevel = 56; // Integer | zoom level from 1 to 19
        array[String] markers = ; // array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with
        try {
            apiInstance.staticGet(xApiKey, width, height, zoomLevel, markers);
        } catch (ApiException e) {
            System.err.println("Exception when calling StaticMapApi#staticGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StaticMapApi;

public class StaticMapApiExample {

    public static void main(String[] args) {
        StaticMapApi apiInstance = new StaticMapApi();
        String xApiKey = xApiKey_example; // String | apikey for use API
        Integer width = 56; // Integer | pixel size width
        Integer height = 56; // Integer | pixel size height
        Integer zoomLevel = 56; // Integer | zoom level from 1 to 19
        array[String] markers = ; // array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with
        try {
            apiInstance.staticGet(xApiKey, width, height, zoomLevel, markers);
        } catch (ApiException e) {
            System.err.println("Exception when calling StaticMapApi#staticGet");
            e.printStackTrace();
        }
    }
}
String *xApiKey = xApiKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Integer *width = 56; // pixel size width (default to 700)
Integer *height = 56; // pixel size height (default to 400)
Integer *zoomLevel = 56; // zoom level from 1 to 19 (default to 12)
array[String] *markers = ; // for add points to map,this query param get four parameters color,lable,lon,lat seperate with (default to [color:default|label:مپ|51.422174,35.732469])

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

// Static Map API
[apiInstance staticGetWith:xApiKey
    width:width
    height:height
    zoomLevel:zoomLevel
    markers:markers
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('___');

var api = new _.StaticMapApi()

var xApiKey = xApiKey_example; // {String} apikey for use API

var width = 56; // {Integer} pixel size width

var height = 56; // {Integer} pixel size height

var zoomLevel = 56; // {Integer} zoom level from 1 to 19

var markers = ; // {array[String]} for add points to map,this query param get four parameters color,lable,lon,lat seperate with


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.staticGet(xApiKey, width, height, zoomLevel, markers, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class staticGetExample
    {
        public void main()
        {
            
            var apiInstance = new StaticMapApi();
            var xApiKey = xApiKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var width = 56;  // Integer | pixel size width (default to 700)
            var height = 56;  // Integer | pixel size height (default to 400)
            var zoomLevel = 56;  // Integer | zoom level from 1 to 19 (default to 12)
            var markers = new array[String](); // array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with (default to [color:default|label:مپ|51.422174,35.732469])

            try
            {
                // Static Map API
                apiInstance.staticGet(xApiKey, width, height, zoomLevel, markers);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StaticMapApi.staticGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StaticMapApi();
$xApiKey = xApiKey_example; // String | apikey for use API
$width = 56; // Integer | pixel size width
$height = 56; // Integer | pixel size height
$zoomLevel = 56; // Integer | zoom level from 1 to 19
$markers = ; // array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with

try {
    $api_instance->staticGet($xApiKey, $width, $height, $zoomLevel, $markers);
} catch (Exception $e) {
    echo 'Exception when calling StaticMapApi->staticGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StaticMapApi;

my $api_instance = WWW::SwaggerClient::StaticMapApi->new();
my $xApiKey = xApiKey_example; # String | apikey for use API
my $width = 56; # Integer | pixel size width
my $height = 56; # Integer | pixel size height
my $zoomLevel = 56; # Integer | zoom level from 1 to 19
my $markers = []; # array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with

eval { 
    $api_instance->staticGet(xApiKey => $xApiKey, width => $width, height => $height, zoomLevel => $zoomLevel, markers => $markers);
};
if ($@) {
    warn "Exception when calling StaticMapApi->staticGet: $@\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.StaticMapApi()
xApiKey = xApiKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
width = 56 # Integer | pixel size width (default to 700)
height = 56 # Integer | pixel size height (default to 400)
zoomLevel = 56 # Integer | zoom level from 1 to 19 (default to 12)
markers =  # array[String] | for add points to map,this query param get four parameters color,lable,lon,lat seperate with (default to [color:default|label:مپ|51.422174,35.732469])

try: 
    # Static Map API
    api_instance.static_get(xApiKey, width, height, zoomLevel, markers)
except ApiException as e:
    print("Exception when calling StaticMapApi->staticGet: %s\n" % e)

Parameters

Header parameters
Name Description
x-api-key*
String
apikey for use API
Required
Query parameters
Name Description
width*
Integer
pixel size width
Required
height*
Integer
pixel size height
Required
zoom_level*
Integer
zoom level from 1 to 19
Required
markers*
array[String]
for add points to map,this query param get four parameters color,lable,lon,lat seperate with
Required

Responses

Status: 200 - successful operation