Geocoder API

Geocode

complete

Complete an address.


/0.1/geocode

Usage and SDK Samples

curl -X PATCH "//geocode.mapotempo.com//0.1/geocode"
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();
        Body body = ; // Body | 
        try {
            GeocodeResult result = apiInstance.complete(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#complete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GeocodeApi;

public class GeocodeApiExample {

    public static void main(String[] args) {
        GeocodeApi apiInstance = new GeocodeApi();
        Body body = ; // Body | 
        try {
            GeocodeResult result = apiInstance.complete(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#complete");
            e.printStackTrace();
        }
    }
}
Body *body = ; // 

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

[apiInstance completeWith:body
              completionHandler: ^(GeocodeResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.GeocodeApi()
var body = ; // {{Body}} 

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

namespace Example
{
    public class completeExample
    {
        public void main()
        {

            var apiInstance = new GeocodeApi();
            var body = new Body(); // Body | 

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

$api_instance = new Swagger\Client\ApiGeocodeApi();
$body = ; // Body | 

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

my $api_instance = WWW::SwaggerClient::GeocodeApi->new();
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->complete(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GeocodeApi->complete: $@\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()
body =  # Body | 

try: 
    api_response = api_instance.complete(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeocodeApi->complete: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Complete an address.


geocode

Geocode an address. From full text or splited in fields


/0.1/geocode

Usage and SDK Samples

curl -X GET "//geocode.mapotempo.com//0.1/geocode?country=&street=&maybe_street=&postcode=&city=&state=&query=&type=&lat=&lng=&limit="
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 country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
        String street = street_example; // String | 
        array[String] maybeStreet = ; // array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
        String postcode = postcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String query = query_example; // String | Full text, free form, address search.
        String type = type_example; // String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
        Float lat = 3.4; // Float | Prioritize results around this latitude.
        Float lng = 3.4; // Float | Prioritize results around this longitude.
        Integer limit = 56; // Integer | Max results numbers. (default and upper max 10)
        try {
            GeocodeResult result = apiInstance.geocode(country, street, maybeStreet, postcode, city, state, query, type, lat, lng, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#geocode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GeocodeApi;

public class GeocodeApiExample {

    public static void main(String[] args) {
        GeocodeApi apiInstance = new GeocodeApi();
        String country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
        String street = street_example; // String | 
        array[String] maybeStreet = ; // array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
        String postcode = postcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String query = query_example; // String | Full text, free form, address search.
        String type = type_example; // String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
        Float lat = 3.4; // Float | Prioritize results around this latitude.
        Float lng = 3.4; // Float | Prioritize results around this longitude.
        Integer limit = 56; // Integer | Max results numbers. (default and upper max 10)
        try {
            GeocodeResult result = apiInstance.geocode(country, street, maybeStreet, postcode, city, state, query, type, lat, lng, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#geocode");
            e.printStackTrace();
        }
    }
}
String *country = country_example; // Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
String *street = street_example; //  (optional)
array[String] *maybeStreet = ; // One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field. (optional)
String *postcode = postcode_example; //  (optional)
String *city = city_example; //  (optional)
String *state = state_example; //  (optional)
String *query = query_example; // Full text, free form, address search. (optional)
String *type = type_example; // Queried result type filter. One of "house", "street", "locality", "city", "region", "country". (optional)
Float *lat = 3.4; // Prioritize results around this latitude. (optional)
Float *lng = 3.4; // Prioritize results around this longitude. (optional)
Integer *limit = 56; // Max results numbers. (default and upper max 10) (optional)

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

[apiInstance geocodeWith:country
    street:street
    maybeStreet:maybeStreet
    postcode:postcode
    city:city
    state:state
    query:query
    type:type
    lat:lat
    lng:lng
    limit:limit
              completionHandler: ^(GeocodeResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.GeocodeApi()
var country = country_example; // {{String}} Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
var opts = { 
  'street': street_example, // {{String}} 
  'maybeStreet': , // {{array[String]}} One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
  'postcode': postcode_example, // {{String}} 
  'city': city_example, // {{String}} 
  'state': state_example, // {{String}} 
  'query': query_example, // {{String}} Full text, free form, address search.
  'type': type_example, // {{String}} Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
  'lat': 3.4, // {{Float}} Prioritize results around this latitude.
  'lng': 3.4, // {{Float}} Prioritize results around this longitude.
  'limit': 56 // {{Integer}} Max results numbers. (default and upper max 10)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.geocode(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class geocodeExample
    {
        public void main()
        {

            var apiInstance = new GeocodeApi();
            var country = country_example;  // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
            var street = street_example;  // String |  (optional) 
            var maybeStreet = new array[String](); // array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field. (optional) 
            var postcode = postcode_example;  // String |  (optional) 
            var city = city_example;  // String |  (optional) 
            var state = state_example;  // String |  (optional) 
            var query = query_example;  // String | Full text, free form, address search. (optional) 
            var type = type_example;  // String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country". (optional) 
            var lat = 3.4;  // Float | Prioritize results around this latitude. (optional) 
            var lng = 3.4;  // Float | Prioritize results around this longitude. (optional) 
            var limit = 56;  // Integer | Max results numbers. (default and upper max 10) (optional) 

            try
            {
                GeocodeResult result = apiInstance.geocode(country, street, maybeStreet, postcode, city, state, query, type, lat, lng, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GeocodeApi.geocode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiGeocodeApi();
$country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
$street = street_example; // String | 
$maybeStreet = ; // array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
$postcode = postcode_example; // String | 
$city = city_example; // String | 
$state = state_example; // String | 
$query = query_example; // String | Full text, free form, address search.
$type = type_example; // String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
$lat = 3.4; // Float | Prioritize results around this latitude.
$lng = 3.4; // Float | Prioritize results around this longitude.
$limit = 56; // Integer | Max results numbers. (default and upper max 10)

try {
    $result = $api_instance->geocode($country, $street, $maybeStreet, $postcode, $city, $state, $query, $type, $lat, $lng, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeocodeApi->geocode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GeocodeApi;

my $api_instance = WWW::SwaggerClient::GeocodeApi->new();
my $country = country_example; # String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
my $street = street_example; # String | 
my $maybeStreet = []; # array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
my $postcode = postcode_example; # String | 
my $city = city_example; # String | 
my $state = state_example; # String | 
my $query = query_example; # String | Full text, free form, address search.
my $type = type_example; # String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
my $lat = 3.4; # Float | Prioritize results around this latitude.
my $lng = 3.4; # Float | Prioritize results around this longitude.
my $limit = 56; # Integer | Max results numbers. (default and upper max 10)

eval { 
    my $result = $api_instance->geocode(country => $country, street => $street, maybeStreet => $maybeStreet, postcode => $postcode, city => $city, state => $state, query => $query, type => $type, lat => $lat, lng => $lng, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GeocodeApi->geocode: $@\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()
country = country_example # String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
street = street_example # String |  (optional)
maybeStreet =  # array[String] | One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field. (optional)
postcode = postcode_example # String |  (optional)
city = city_example # String |  (optional)
state = state_example # String |  (optional)
query = query_example # String | Full text, free form, address search. (optional)
type = type_example # String | Queried result type filter. One of "house", "street", "locality", "city", "region", "country". (optional)
lat = 3.4 # Float | Prioritize results around this latitude. (optional)
lng = 3.4 # Float | Prioritize results around this longitude. (optional)
limit = 56 # Integer | Max results numbers. (default and upper max 10) (optional)

try: 
    api_response = api_instance.geocode(country, street=street, maybeStreet=maybeStreet, postcode=postcode, city=city, state=state, query=query, type=type, lat=lat, lng=lng, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeocodeApi->geocode: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
Required
street
String
maybe_street
array[String]
One undetermined entry of the array is the street, selects the good one for the geocoding process. Need to add an empty entry as alternative if you are unsure if there is a street in the list. Mutually exclusive field with street field.
postcode
String
city
String
state
String
query
String
Full text, free form, address search.
type
String
Queried result type filter. One of "house", "street", "locality", "city", "region", "country".
lat
Float (float)
Prioritize results around this latitude.
lng
Float (float)
Prioritize results around this longitude.
limit
Integer (int32)
Max results numbers. (default and upper max 10)

Responses

Status: 200 - Geocode an address. From full text or splited in fields


geocodes

Geocode from bulk json address. From full text or splited in fields.


/0.1/geocode

Usage and SDK Samples

curl -X POST "//geocode.mapotempo.com//0.1/geocode"
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();
        try {
            GeocodesResult result = apiInstance.geocodes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#geocodes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GeocodeApi;

public class GeocodeApiExample {

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

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

[apiInstance geocodesWithCompletionHandler: 
              ^(GeocodesResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

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

namespace Example
{
    public class geocodesExample
    {
        public void main()
        {

            var apiInstance = new GeocodeApi();

            try
            {
                GeocodesResult result = apiInstance.geocodes();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GeocodeApi.geocodes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiGeocodeApi();

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

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

eval { 
    my $result = $api_instance->geocodes();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GeocodeApi->geocodes: $@\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()

try: 
    api_response = api_instance.geocodes()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeocodeApi->geocodes: %s\n" % e)

Parameters

Responses

Status: 201 - Geocode from bulk json address. From full text or splited in fields.


Map

map

Provide javascript sdk.


/0.1/map

Usage and SDK Samples

curl -X GET "//geocode.mapotempo.com//0.1/map"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MapApi;

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

public class MapApiExample {

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

public class MapApiExample {

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

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

[apiInstance mapWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.MapApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.map(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class mapExample
    {
        public void main()
        {

            var apiInstance = new MapApi();

            try
            {
                apiInstance.map();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MapApi.map: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMapApi();

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

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

eval { 
    $api_instance->map();
};
if ($@) {
    warn "Exception when calling MapApi->map: $@\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.MapApi()

try: 
    api_instance.map()
except ApiException as e:
    print("Exception when calling MapApi->map: %s\n" % e)

Parameters

Responses

Status: 200 - Provide javascript sdk.


Reverse

reverse

Reverse geocode an address.


/0.1/reverse

Usage and SDK Samples

curl -X GET "//geocode.mapotempo.com//0.1/reverse?lat=&lng="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReverseApi;

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

public class ReverseApiExample {

    public static void main(String[] args) {
        
        ReverseApi apiInstance = new ReverseApi();
        Float lat = 3.4; // Float | Latitude.
        Float lng = 3.4; // Float | Longitude.
        try {
            GeocodeResult result = apiInstance.reverse(lat, lng);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseApi#reverse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReverseApi;

public class ReverseApiExample {

    public static void main(String[] args) {
        ReverseApi apiInstance = new ReverseApi();
        Float lat = 3.4; // Float | Latitude.
        Float lng = 3.4; // Float | Longitude.
        try {
            GeocodeResult result = apiInstance.reverse(lat, lng);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseApi#reverse");
            e.printStackTrace();
        }
    }
}
Float *lat = 3.4; // Latitude.
Float *lng = 3.4; // Longitude.

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

[apiInstance reverseWith:lat
    lng:lng
              completionHandler: ^(GeocodeResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.ReverseApi()
var lat = 3.4; // {{Float}} Latitude.
var lng = 3.4; // {{Float}} Longitude.

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

namespace Example
{
    public class reverseExample
    {
        public void main()
        {

            var apiInstance = new ReverseApi();
            var lat = 3.4;  // Float | Latitude.
            var lng = 3.4;  // Float | Longitude.

            try
            {
                GeocodeResult result = apiInstance.reverse(lat, lng);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReverseApi.reverse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReverseApi();
$lat = 3.4; // Float | Latitude.
$lng = 3.4; // Float | Longitude.

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

my $api_instance = WWW::SwaggerClient::ReverseApi->new();
my $lat = 3.4; # Float | Latitude.
my $lng = 3.4; # Float | Longitude.

eval { 
    my $result = $api_instance->reverse(lat => $lat, lng => $lng);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReverseApi->reverse: $@\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.ReverseApi()
lat = 3.4 # Float | Latitude.
lng = 3.4 # Float | Longitude.

try: 
    api_response = api_instance.reverse(lat, lng)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseApi->reverse: %s\n" % e)

Parameters

Query parameters
Name Description
lat*
Float (float)
Latitude.
Required
lng*
Float (float)
Longitude.
Required

Responses

Status: 200 - Reverse geocode an address.


reverses

Reverse geocode from bulk json address.


/0.1/reverse

Usage and SDK Samples

curl -X POST "//geocode.mapotempo.com//0.1/reverse"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReverseApi;

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

public class ReverseApiExample {

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

public class ReverseApiExample {

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

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

[apiInstance reversesWithCompletionHandler: 
              ^(ReversesResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

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

namespace Example
{
    public class reversesExample
    {
        public void main()
        {

            var apiInstance = new ReverseApi();

            try
            {
                ReversesResult result = apiInstance.reverses();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReverseApi.reverses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReverseApi();

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

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

eval { 
    my $result = $api_instance->reverses();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReverseApi->reverses: $@\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.ReverseApi()

try: 
    api_response = api_instance.reverses()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseApi->reverses: %s\n" % e)

Parameters

Responses

Status: 201 - Reverse geocode from bulk json address.