سیدار مپ

Direction

v1DirectionCedarmapsDrivingPairPost


/v1/direction/cedarmaps.driving/{pair}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/direction/cedarmaps.driving/{pair}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DirectionApi;

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

public class DirectionApiExample {

    public static void main(String[] args) {
        
        DirectionApi apiInstance = new DirectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        try {
            inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DirectionApi;

public class DirectionApiExample {

    public static void main(String[] args) {
        DirectionApi apiInstance = new DirectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        try {
            inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *pair = pair_example; // Point pairs format are as below lat1,lon1;lat2,lon2

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

[apiInstance v1DirectionCedarmapsDrivingPairPostWith:apiecoKey
    apiKey:apiKey
    index:index
    pair:pair
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.DirectionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`

var pair = pair_example; // {String} Point pairs format are as below lat1,lon1;lat2,lon2


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

namespace Example
{
    public class v1DirectionCedarmapsDrivingPairPostExample
    {
        public void main()
        {
            
            var apiInstance = new DirectionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var index = index_example;  // String | The only supported `index` is `cedarmaps.streets`
            var pair = pair_example;  // String | Point pairs format are as below lat1,lon1;lat2,lon2

            try
            {
                inline_response_200_4 result = apiInstance.v1DirectionCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DirectionApi.v1DirectionCedarmapsDrivingPairPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DirectionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2

try {
    $result = $api_instance->v1DirectionCedarmapsDrivingPairPost($apiecoKey, $apiKey, $index, $pair);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DirectionApi;

my $api_instance = WWW::SwaggerClient::DirectionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $pair = pair_example; # String | Point pairs format are as below lat1,lon1;lat2,lon2

eval { 
    my $result = $api_instance->v1DirectionCedarmapsDrivingPairPost(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, pair => $pair);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DirectionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
pair = pair_example # String | Point pairs format are as below lat1,lon1;lat2,lon2

try: 
    api_response = api_instance.v1_direction_cedarmaps_driving_pair_post(apiecoKey, apiKey, index, pair)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost: %s\n" % e)

Parameters

Path parameters
Name Description
index*
String
The only supported `index` is `cedarmaps.streets`
Required
pair*
String
Point pairs format are as below lat1,lon1;lat2,lon2
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required

Responses

Status: 200 - 200 response


v1DirectionCedarmapsDrivingPairPost_1

Turn-by-turn Navigation


/v1/direction/cedarmaps.driving/{pair}/

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/direction/cedarmaps.driving/{pair}/?instructions="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DirectionApi;

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

public class DirectionApiExample {

    public static void main(String[] args) {
        
        DirectionApi apiInstance = new DirectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        Boolean instructions = true; // Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.
        try {
            inline_response_200_5 result = apiInstance.v1DirectionCedarmapsDrivingPairPost_0(apiecoKey, apiKey, index, pair, instructions);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DirectionApi;

public class DirectionApiExample {

    public static void main(String[] args) {
        DirectionApi apiInstance = new DirectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        Boolean instructions = true; // Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.
        try {
            inline_response_200_5 result = apiInstance.v1DirectionCedarmapsDrivingPairPost_0(apiecoKey, apiKey, index, pair, instructions);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DirectionApi#v1DirectionCedarmapsDrivingPairPost_0");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *pair = pair_example; // Point pairs format are as below lat1,lon1;lat2,lon2
Boolean *instructions = true; // In order to get turn-by-turn instructions you should include instructions=true parameter in query string.

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

// Turn-by-turn Navigation
[apiInstance v1DirectionCedarmapsDrivingPairPost_1With:apiecoKey
    apiKey:apiKey
    index:index
    pair:pair
    instructions:instructions
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.DirectionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`

var pair = pair_example; // {String} Point pairs format are as below lat1,lon1;lat2,lon2

var instructions = true; // {Boolean} In order to get turn-by-turn instructions you should include instructions=true parameter in query string.


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

namespace Example
{
    public class v1DirectionCedarmapsDrivingPairPost_0Example
    {
        public void main()
        {
            
            var apiInstance = new DirectionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var index = index_example;  // String | The only supported `index` is `cedarmaps.streets`
            var pair = pair_example;  // String | Point pairs format are as below lat1,lon1;lat2,lon2
            var instructions = true;  // Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.

            try
            {
                // Turn-by-turn Navigation
                inline_response_200_5 result = apiInstance.v1DirectionCedarmapsDrivingPairPost_0(apiecoKey, apiKey, index, pair, instructions);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DirectionApi.v1DirectionCedarmapsDrivingPairPost_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DirectionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
$instructions = true; // Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.

try {
    $result = $api_instance->v1DirectionCedarmapsDrivingPairPost_0($apiecoKey, $apiKey, $index, $pair, $instructions);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DirectionApi;

my $api_instance = WWW::SwaggerClient::DirectionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $pair = pair_example; # String | Point pairs format are as below lat1,lon1;lat2,lon2
my $instructions = true; # Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.

eval { 
    my $result = $api_instance->v1DirectionCedarmapsDrivingPairPost_0(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, pair => $pair, instructions => $instructions);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost_0: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DirectionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
pair = pair_example # String | Point pairs format are as below lat1,lon1;lat2,lon2
instructions = true # Boolean | In order to get turn-by-turn instructions you should include instructions=true parameter in query string.

try: 
    # Turn-by-turn Navigation
    api_response = api_instance.v1_direction_cedarmaps_driving_pair_post_0(apiecoKey, apiKey, index, pair, instructions)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DirectionApi->v1DirectionCedarmapsDrivingPairPost_0: %s\n" % e)

Parameters

Path parameters
Name Description
index*
String
The only supported `index` is `cedarmaps.streets`
Required
pair*
String
Point pairs format are as below lat1,lon1;lat2,lon2
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required
Query parameters
Name Description
instructions*
Boolean
In order to get turn-by-turn instructions you should include instructions=true parameter in query string.
Required

Responses

Status: 200 - 200 response


Distance

v1DistanceCedarmapsDrivingPairPost


/v1/distance/cedarmaps.driving/{pair}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/distance/cedarmaps.driving/{pair}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DistanceApi;

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

public class DistanceApiExample {

    public static void main(String[] args) {
        
        DistanceApi apiInstance = new DistanceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        try {
            inline_response_200_3 result = apiInstance.v1DistanceCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DistanceApi#v1DistanceCedarmapsDrivingPairPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DistanceApi;

public class DistanceApiExample {

    public static void main(String[] args) {
        DistanceApi apiInstance = new DistanceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2
        try {
            inline_response_200_3 result = apiInstance.v1DistanceCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DistanceApi#v1DistanceCedarmapsDrivingPairPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *pair = pair_example; // Point pairs format are as below lat1,lon1;lat2,lon2

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

[apiInstance v1DistanceCedarmapsDrivingPairPostWith:apiecoKey
    apiKey:apiKey
    index:index
    pair:pair
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.DistanceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`

var pair = pair_example; // {String} Point pairs format are as below lat1,lon1;lat2,lon2


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

namespace Example
{
    public class v1DistanceCedarmapsDrivingPairPostExample
    {
        public void main()
        {
            
            var apiInstance = new DistanceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var index = index_example;  // String | The only supported `index` is `cedarmaps.streets`
            var pair = pair_example;  // String | Point pairs format are as below lat1,lon1;lat2,lon2

            try
            {
                inline_response_200_3 result = apiInstance.v1DistanceCedarmapsDrivingPairPost(apiecoKey, apiKey, index, pair);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DistanceApi.v1DistanceCedarmapsDrivingPairPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DistanceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$pair = pair_example; // String | Point pairs format are as below lat1,lon1;lat2,lon2

try {
    $result = $api_instance->v1DistanceCedarmapsDrivingPairPost($apiecoKey, $apiKey, $index, $pair);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DistanceApi->v1DistanceCedarmapsDrivingPairPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DistanceApi;

my $api_instance = WWW::SwaggerClient::DistanceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $pair = pair_example; # String | Point pairs format are as below lat1,lon1;lat2,lon2

eval { 
    my $result = $api_instance->v1DistanceCedarmapsDrivingPairPost(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, pair => $pair);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DistanceApi->v1DistanceCedarmapsDrivingPairPost: $@\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.DistanceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
pair = pair_example # String | Point pairs format are as below lat1,lon1;lat2,lon2

try: 
    api_response = api_instance.v1_distance_cedarmaps_driving_pair_post(apiecoKey, apiKey, index, pair)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DistanceApi->v1DistanceCedarmapsDrivingPairPost: %s\n" % e)

Parameters

Path parameters
Name Description
index*
String
The only supported `index` is `cedarmaps.streets`
Required
pair*
String
Point pairs format are as below lat1,lon1;lat2,lon2
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required

Responses

Status: 200 - 200 response


Geocode

v1GeocodeIndexQueryPost


/v1/geocode/{index}/{query}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/geocode/{index}/{query}?limit=&distance=&location=&type=&ne=&sw="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GeocodeApi;

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

public class GeocodeApiExample {

    public static void main(String[] args) {
        
        GeocodeApi apiInstance = new GeocodeApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String query = query_example; // String | ID of pet to update
        Integer limit = 56; // Integer | Max is 30
        Integer distance = 56; // Integer | Unit is km, 0.1 means 100 meters
        Integer location = 56; // Integer | Center point of a nearby search. should be accompanied with distance param
        Integer type = 56; // Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
        Integer ne = 56; // Integer | Specifies north east of the bounding box - should be accompanied with sw param
        Integer sw = 56; // Integer | Specifies south west of the bounding box - should be accompanied with ne param
        try {
            inline_response_200_1 result = apiInstance.v1GeocodeIndexQueryPost(apiecoKey, apiKey, index, query, limit, distance, location, type, ne, sw);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#v1GeocodeIndexQueryPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GeocodeApi;

public class GeocodeApiExample {

    public static void main(String[] args) {
        GeocodeApi apiInstance = new GeocodeApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String query = query_example; // String | ID of pet to update
        Integer limit = 56; // Integer | Max is 30
        Integer distance = 56; // Integer | Unit is km, 0.1 means 100 meters
        Integer location = 56; // Integer | Center point of a nearby search. should be accompanied with distance param
        Integer type = 56; // Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
        Integer ne = 56; // Integer | Specifies north east of the bounding box - should be accompanied with sw param
        Integer sw = 56; // Integer | Specifies south west of the bounding box - should be accompanied with ne param
        try {
            inline_response_200_1 result = apiInstance.v1GeocodeIndexQueryPost(apiecoKey, apiKey, index, query, limit, distance, location, type, ne, sw);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#v1GeocodeIndexQueryPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *query = query_example; // ID of pet to update
Integer *limit = 56; // Max is 30 (optional)
Integer *distance = 56; // Unit is km, 0.1 means 100 meters (optional)
Integer *location = 56; // Center point of a nearby search. should be accompanied with distance param (optional)
Integer *type = 56; // Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas) (optional)
Integer *ne = 56; // Specifies north east of the bounding box - should be accompanied with sw param (optional)
Integer *sw = 56; // Specifies south west of the bounding box - should be accompanied with ne param (optional)

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

[apiInstance v1GeocodeIndexQueryPostWith:apiecoKey
    apiKey:apiKey
    index:index
    query:query
    limit:limit
    distance:distance
    location:location
    type:type
    ne:ne
    sw:sw
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.GeocodeApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`

var query = query_example; // {String} ID of pet to update

var opts = { 
  'limit': 56, // {Integer} Max is 30
  'distance': 56, // {Integer} Unit is km, 0.1 means 100 meters
  'location': 56, // {Integer} Center point of a nearby search. should be accompanied with distance param
  'type': 56, // {Integer} Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
  'ne': 56, // {Integer} Specifies north east of the bounding box - should be accompanied with sw param
  'sw': 56 // {Integer} Specifies south west of the bounding box - should be accompanied with ne param
};

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

namespace Example
{
    public class v1GeocodeIndexQueryPostExample
    {
        public void main()
        {
            
            var apiInstance = new GeocodeApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var index = index_example;  // String | The only supported `index` is `cedarmaps.streets`
            var query = query_example;  // String | ID of pet to update
            var limit = 56;  // Integer | Max is 30 (optional) 
            var distance = 56;  // Integer | Unit is km, 0.1 means 100 meters (optional) 
            var location = 56;  // Integer | Center point of a nearby search. should be accompanied with distance param (optional) 
            var type = 56;  // Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas) (optional) 
            var ne = 56;  // Integer | Specifies north east of the bounding box - should be accompanied with sw param (optional) 
            var sw = 56;  // Integer | Specifies south west of the bounding box - should be accompanied with ne param (optional) 

            try
            {
                inline_response_200_1 result = apiInstance.v1GeocodeIndexQueryPost(apiecoKey, apiKey, index, query, limit, distance, location, type, ne, sw);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GeocodeApi.v1GeocodeIndexQueryPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GeocodeApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$query = query_example; // String | ID of pet to update
$limit = 56; // Integer | Max is 30
$distance = 56; // Integer | Unit is km, 0.1 means 100 meters
$location = 56; // Integer | Center point of a nearby search. should be accompanied with distance param
$type = 56; // Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
$ne = 56; // Integer | Specifies north east of the bounding box - should be accompanied with sw param
$sw = 56; // Integer | Specifies south west of the bounding box - should be accompanied with ne param

try {
    $result = $api_instance->v1GeocodeIndexQueryPost($apiecoKey, $apiKey, $index, $query, $limit, $distance, $location, $type, $ne, $sw);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeocodeApi->v1GeocodeIndexQueryPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GeocodeApi;

my $api_instance = WWW::SwaggerClient::GeocodeApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $query = query_example; # String | ID of pet to update
my $limit = 56; # Integer | Max is 30
my $distance = 56; # Integer | Unit is km, 0.1 means 100 meters
my $location = 56; # Integer | Center point of a nearby search. should be accompanied with distance param
my $type = 56; # Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
my $ne = 56; # Integer | Specifies north east of the bounding box - should be accompanied with sw param
my $sw = 56; # Integer | Specifies south west of the bounding box - should be accompanied with ne param

eval { 
    my $result = $api_instance->v1GeocodeIndexQueryPost(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, query => $query, limit => $limit, distance => $distance, location => $location, type => $type, ne => $ne, sw => $sw);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GeocodeApi->v1GeocodeIndexQueryPost: $@\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.GeocodeApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
query = query_example # String | ID of pet to update
limit = 56 # Integer | Max is 30 (optional)
distance = 56 # Integer | Unit is km, 0.1 means 100 meters (optional)
location = 56 # Integer | Center point of a nearby search. should be accompanied with distance param (optional)
type = 56 # Integer | Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas) (optional)
ne = 56 # Integer | Specifies north east of the bounding box - should be accompanied with sw param (optional)
sw = 56 # Integer | Specifies south west of the bounding box - should be accompanied with ne param (optional)

try: 
    api_response = api_instance.v1_geocode_index_query_post(apiecoKey, apiKey, index, query, limit=limit, distance=distance, location=location, type=type, ne=ne, sw=sw)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeocodeApi->v1GeocodeIndexQueryPost: %s\n" % e)

Parameters

Path parameters
Name Description
index*
String
The only supported `index` is `cedarmaps.streets`
Required
query*
String
ID of pet to update
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required
Query parameters
Name Description
limit
Integer
Max is 30
distance
Integer
Unit is km, 0.1 means 100 meters
location
Integer
Center point of a nearby search. should be accompanied with distance param
type
Integer
Possible values are: locality, roundabout, street, freeway, expressway, boulevard, city, state (You can mix types by separating them with commas)
ne
Integer
Specifies north east of the bounding box - should be accompanied with sw param
sw
Integer
Specifies south west of the bounding box - should be accompanied with ne param

Responses

Status: 200 - 200 response


GettingAccessToken

v1TokenPost

Getting Access Token


/v1/token

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GettingAccessTokenApi;

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

public class GettingAccessTokenApiExample {

    public static void main(String[] args) {
        
        GettingAccessTokenApi apiInstance = new GettingAccessTokenApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.v1TokenPost(apiecoKey, apiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingAccessTokenApi#v1TokenPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GettingAccessTokenApi;

public class GettingAccessTokenApiExample {

    public static void main(String[] args) {
        GettingAccessTokenApi apiInstance = new GettingAccessTokenApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.v1TokenPost(apiecoKey, apiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingAccessTokenApi#v1TokenPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
Body *body = ; //  (optional)

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

// Getting Access Token
[apiInstance v1TokenPostWith:apiecoKey
    apiKey:apiKey
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.GettingAccessTokenApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var opts = { 
  'body':  // {Body} 
};

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

namespace Example
{
    public class v1TokenPostExample
    {
        public void main()
        {
            
            var apiInstance = new GettingAccessTokenApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var body = new Body(); // Body |  (optional) 

            try
            {
                // Getting Access Token
                inline_response_200 result = apiInstance.v1TokenPost(apiecoKey, apiKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GettingAccessTokenApi.v1TokenPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GettingAccessTokenApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$body = ; // Body | 

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

my $api_instance = WWW::SwaggerClient::GettingAccessTokenApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->v1TokenPost(apiecoKey => $apiecoKey, apiKey => $apiKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GettingAccessTokenApi->v1TokenPost: $@\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.GettingAccessTokenApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
body =  # Body |  (optional)

try: 
    # Getting Access Token
    api_response = api_instance.v1_token_post(apiecoKey, apiKey, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GettingAccessTokenApi->v1TokenPost: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required
Body parameters
Name Description
body

Responses

Status: 200 - 200 response


GettingTileJSON

v1TilesMapidJsonPost


/v1/tiles/{mapid}.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/tiles/{mapid}.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GettingTileJSONApi;

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

public class GettingTileJSONApiExample {

    public static void main(String[] args) {
        
        GettingTileJSONApi apiInstance = new GettingTileJSONApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`
        try {
            inline_response_200_6 result = apiInstance.v1TilesMapidJsonPost(apiecoKey, apiKey, mapid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingTileJSONApi#v1TilesMapidJsonPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GettingTileJSONApi;

public class GettingTileJSONApiExample {

    public static void main(String[] args) {
        GettingTileJSONApi apiInstance = new GettingTileJSONApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`
        try {
            inline_response_200_6 result = apiInstance.v1TilesMapidJsonPost(apiecoKey, apiKey, mapid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingTileJSONApi#v1TilesMapidJsonPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *mapid = mapid_example; // The only supported `index` is `cedarmaps.streets`

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

[apiInstance v1TilesMapidJsonPostWith:apiecoKey
    apiKey:apiKey
    mapid:mapid
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.GettingTileJSONApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var mapid = mapid_example; // {String} The only supported `index` is `cedarmaps.streets`


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

namespace Example
{
    public class v1TilesMapidJsonPostExample
    {
        public void main()
        {
            
            var apiInstance = new GettingTileJSONApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var mapid = mapid_example;  // String | The only supported `index` is `cedarmaps.streets`

            try
            {
                inline_response_200_6 result = apiInstance.v1TilesMapidJsonPost(apiecoKey, apiKey, mapid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GettingTileJSONApi.v1TilesMapidJsonPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GettingTileJSONApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`

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

my $api_instance = WWW::SwaggerClient::GettingTileJSONApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $mapid = mapid_example; # String | The only supported `index` is `cedarmaps.streets`

eval { 
    my $result = $api_instance->v1TilesMapidJsonPost(apiecoKey => $apiecoKey, apiKey => $apiKey, mapid => $mapid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GettingTileJSONApi->v1TilesMapidJsonPost: $@\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.GettingTileJSONApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
mapid = mapid_example # String | The only supported `index` is `cedarmaps.streets`

try: 
    api_response = api_instance.v1_tiles_mapid_json_post(apiecoKey, apiKey, mapid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GettingTileJSONApi->v1TilesMapidJsonPost: %s\n" % e)

Parameters

Path parameters
Name Description
mapid*
String
The only supported `index` is `cedarmaps.streets`
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required

Responses

Status: 200 - 200 response


v1TilesMapidZXYPngPost

After loading the above TileJSON, it gives you the path to load the tiles


/v1/tiles/{mapid}/{z}/{x}/{y}.png

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/tiles/{mapid}/{z}/{x}/{y}.png"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GettingTileJSONApi;

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

public class GettingTileJSONApiExample {

    public static void main(String[] args) {
        
        GettingTileJSONApi apiInstance = new GettingTileJSONApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`
        String z = z_example; // String | 
        String x = x_example; // String | 
        String y = y_example; // String | 
        try {
            apiInstance.v1TilesMapidZXYPngPost(apiecoKey, apiKey, mapid, z, x, y);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingTileJSONApi#v1TilesMapidZXYPngPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GettingTileJSONApi;

public class GettingTileJSONApiExample {

    public static void main(String[] args) {
        GettingTileJSONApi apiInstance = new GettingTileJSONApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`
        String z = z_example; // String | 
        String x = x_example; // String | 
        String y = y_example; // String | 
        try {
            apiInstance.v1TilesMapidZXYPngPost(apiecoKey, apiKey, mapid, z, x, y);
        } catch (ApiException e) {
            System.err.println("Exception when calling GettingTileJSONApi#v1TilesMapidZXYPngPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *mapid = mapid_example; // The only supported `index` is `cedarmaps.streets`
String *z = z_example; // 
String *x = x_example; // 
String *y = y_example; // 

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

// After loading the above TileJSON, it gives you the path to load the tiles
[apiInstance v1TilesMapidZXYPngPostWith:apiecoKey
    apiKey:apiKey
    mapid:mapid
    z:z
    x:x
    y:y
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.GettingTileJSONApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var mapid = mapid_example; // {String} The only supported `index` is `cedarmaps.streets`

var z = z_example; // {String} 

var x = x_example; // {String} 

var y = y_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.v1TilesMapidZXYPngPost(apiecoKey, apiKey, mapid, z, x, y, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TilesMapidZXYPngPostExample
    {
        public void main()
        {
            
            var apiInstance = new GettingTileJSONApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var mapid = mapid_example;  // String | The only supported `index` is `cedarmaps.streets`
            var z = z_example;  // String | 
            var x = x_example;  // String | 
            var y = y_example;  // String | 

            try
            {
                // After loading the above TileJSON, it gives you the path to load the tiles
                apiInstance.v1TilesMapidZXYPngPost(apiecoKey, apiKey, mapid, z, x, y);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GettingTileJSONApi.v1TilesMapidZXYPngPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GettingTileJSONApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$mapid = mapid_example; // String | The only supported `index` is `cedarmaps.streets`
$z = z_example; // String | 
$x = x_example; // String | 
$y = y_example; // String | 

try {
    $api_instance->v1TilesMapidZXYPngPost($apiecoKey, $apiKey, $mapid, $z, $x, $y);
} catch (Exception $e) {
    echo 'Exception when calling GettingTileJSONApi->v1TilesMapidZXYPngPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GettingTileJSONApi;

my $api_instance = WWW::SwaggerClient::GettingTileJSONApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $mapid = mapid_example; # String | The only supported `index` is `cedarmaps.streets`
my $z = z_example; # String | 
my $x = x_example; # String | 
my $y = y_example; # String | 

eval { 
    $api_instance->v1TilesMapidZXYPngPost(apiecoKey => $apiecoKey, apiKey => $apiKey, mapid => $mapid, z => $z, x => $x, y => $y);
};
if ($@) {
    warn "Exception when calling GettingTileJSONApi->v1TilesMapidZXYPngPost: $@\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.GettingTileJSONApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
mapid = mapid_example # String | The only supported `index` is `cedarmaps.streets`
z = z_example # String | 
x = x_example # String | 
y = y_example # String | 

try: 
    # After loading the above TileJSON, it gives you the path to load the tiles
    api_instance.v1_tiles_mapid_zxy_png_post(apiecoKey, apiKey, mapid, z, x, y)
except ApiException as e:
    print("Exception when calling GettingTileJSONApi->v1TilesMapidZXYPngPost: %s\n" % e)

Parameters

Path parameters
Name Description
mapid*
String
The only supported `index` is `cedarmaps.streets`
Required
z*
String
Required
x*
String
Required
y*
String
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required

Responses

Status: 200 - 200 response


ReverseGeocoding

v1GeocodeIndexPointJsonPost


/v1/geocode/{index}/{point}.json

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/cedarmaps/v1/geocode/{index}/{point}.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReverseGeocodingApi;

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

public class ReverseGeocodingApiExample {

    public static void main(String[] args) {
        
        ReverseGeocodingApi apiInstance = new ReverseGeocodingApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String point = point_example; // String | point format is lat,lon
        try {
            inline_response_200_2 result = apiInstance.v1GeocodeIndexPointJsonPost(apiecoKey, apiKey, index, point);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodingApi#v1GeocodeIndexPointJsonPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReverseGeocodingApi;

public class ReverseGeocodingApiExample {

    public static void main(String[] args) {
        ReverseGeocodingApi apiInstance = new ReverseGeocodingApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String apiKey = apiKey_example; // String | YOUR_API_KEY
        String index = index_example; // String | The only supported `index` is `cedarmaps.streets`
        String point = point_example; // String | point format is lat,lon
        try {
            inline_response_200_2 result = apiInstance.v1GeocodeIndexPointJsonPost(apiecoKey, apiKey, index, point);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseGeocodingApi#v1GeocodeIndexPointJsonPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *apiKey = apiKey_example; // YOUR_API_KEY
String *index = index_example; // The only supported `index` is `cedarmaps.streets`
String *point = point_example; // point format is lat,lon

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

[apiInstance v1GeocodeIndexPointJsonPostWith:apiecoKey
    apiKey:apiKey
    index:index
    point:point
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('_');

var api = new _.ReverseGeocodingApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var apiKey = apiKey_example; // {String} YOUR_API_KEY

var index = index_example; // {String} The only supported `index` is `cedarmaps.streets`

var point = point_example; // {String} point format is lat,lon


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

namespace Example
{
    public class v1GeocodeIndexPointJsonPostExample
    {
        public void main()
        {
            
            var apiInstance = new ReverseGeocodingApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var apiKey = apiKey_example;  // String | YOUR_API_KEY
            var index = index_example;  // String | The only supported `index` is `cedarmaps.streets`
            var point = point_example;  // String | point format is lat,lon

            try
            {
                inline_response_200_2 result = apiInstance.v1GeocodeIndexPointJsonPost(apiecoKey, apiKey, index, point);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReverseGeocodingApi.v1GeocodeIndexPointJsonPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ReverseGeocodingApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$apiKey = apiKey_example; // String | YOUR_API_KEY
$index = index_example; // String | The only supported `index` is `cedarmaps.streets`
$point = point_example; // String | point format is lat,lon

try {
    $result = $api_instance->v1GeocodeIndexPointJsonPost($apiecoKey, $apiKey, $index, $point);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReverseGeocodingApi->v1GeocodeIndexPointJsonPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReverseGeocodingApi;

my $api_instance = WWW::SwaggerClient::ReverseGeocodingApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $apiKey = apiKey_example; # String | YOUR_API_KEY
my $index = index_example; # String | The only supported `index` is `cedarmaps.streets`
my $point = point_example; # String | point format is lat,lon

eval { 
    my $result = $api_instance->v1GeocodeIndexPointJsonPost(apiecoKey => $apiecoKey, apiKey => $apiKey, index => $index, point => $point);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReverseGeocodingApi->v1GeocodeIndexPointJsonPost: $@\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.ReverseGeocodingApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
apiKey = apiKey_example # String | YOUR_API_KEY
index = index_example # String | The only supported `index` is `cedarmaps.streets`
point = point_example # String | point format is lat,lon

try: 
    api_response = api_instance.v1_geocode_index_point_json_post(apiecoKey, apiKey, index, point)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseGeocodingApi->v1GeocodeIndexPointJsonPost: %s\n" % e)

Parameters

Path parameters
Name Description
index*
String
The only supported `index` is `cedarmaps.streets`
Required
point*
String
point format is lat,lon
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Api-Key*
String
YOUR_API_KEY
Required

Responses

Status: 200 - 200 response