Geocoder API

Geocode

complete

Complete an address.

Complete an address.


/0.1/geocode

Usage and SDK Samples

curl -X patch "https://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();
        String country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
        String housenumber = housenumber_example; // String | 
        String street = street_example; // String | 
        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.complete(country, housenumber, street, postcode, city, state, query, type, lat, lng, limit);
            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();
        String country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
        String housenumber = housenumber_example; // String | 
        String street = street_example; // String | 
        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.complete(country, housenumber, street, postcode, city, state, query, type, lat, lng, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#complete");
            e.printStackTrace();
        }
    }
}
String *country = country_example; // Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
String *housenumber = housenumber_example; //  (optional)
String *street = street_example; //  (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];

// Complete an address.
[apiInstance completeWith:country
    housenumber:housenumber
    street:street
    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 = { 
  'housenumber': housenumber_example, // {String} 
  'street': street_example, // {String} 
  '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.complete(country, opts, 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 country = country_example;  // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
            var housenumber = housenumber_example;  // String |  (optional) 
            var street = street_example;  // String |  (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
            {
                // Complete an address.
                GeocodeResult result = apiInstance.complete(country, housenumber, street, postcode, city, state, query, type, lat, lng, limit);
                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\Api\GeocodeApi();
$country = country_example; // String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
$housenumber = housenumber_example; // String | 
$street = street_example; // String | 
$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->complete($country, $housenumber, $street, $postcode, $city, $state, $query, $type, $lat, $lng, $limit);
    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 $country = country_example; # String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
my $housenumber = housenumber_example; # String | 
my $street = street_example; # String | 
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->complete(country => $country, housenumber => $housenumber, street => $street, 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->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()
country = country_example # String | Simple country name, ISO 3166-alpha-2 or ISO 3166-alpha-3.
housenumber = housenumber_example # String |  (optional)
street = street_example # String |  (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: 
    # Complete an address.
    api_response = api_instance.complete(country, housenumber=housenumber, street=street, 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->complete: %s\n" % e)

Parameters

Form parameters
Name Description
country*
housenumber
street
postcode
city
state
query
type
lat
lng
limit

Responses

Status: 200 - Complete an address.


geocode

Geocode an address. From full text or splited in fields

Geocode an address. From full text or splited in fields


/0.1/geocode

Usage and SDK Samples

curl -X get "https://geocode.mapotempo.com/0.1/geocode?country=&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];

// Geocode an address. From full text or splited in fields
[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
            {
                // Geocode an address. From full text or splited in fields
                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\Api\GeocodeApi();
$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: 
    # Geocode an address. From full text or splited in fields
    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

Form parameters
Name Description
maybe_street
Query parameters
Name Description
country*
street
postcode
city
state
query
type
lat
lng
limit

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.

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


/0.1/geocode

Usage and SDK Samples

curl -X post "https://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();
        array[GeocodesRequestFeature] geocodes = ; // array[GeocodesRequestFeature] | Data to be geocoded.
        try {
            GeocodesResult result = apiInstance.geocodes(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();
        array[GeocodesRequestFeature] geocodes = ; // array[GeocodesRequestFeature] | Data to be geocoded.
        try {
            GeocodesResult result = apiInstance.geocodes(geocodes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeocodeApi#geocodes");
            e.printStackTrace();
        }
    }
}
array[GeocodesRequestFeature] *geocodes = ; // Data to be geocoded.

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

// Geocode from bulk json address. From full text or splited in fields.
[apiInstance geocodesWith:geocodes
              completionHandler: ^(GeocodesResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.GeocodeApi()

var geocodes = ; // {array[GeocodesRequestFeature]} Data to be geocoded.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.geocodes(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();
            var geocodes = new array[GeocodesRequestFeature](); // array[GeocodesRequestFeature] | Data to be geocoded.

            try
            {
                // Geocode from bulk json address. From full text or splited in fields.
                GeocodesResult result = apiInstance.geocodes(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\Api\GeocodeApi();
$geocodes = ; // array[GeocodesRequestFeature] | Data to be geocoded.

try {
    $result = $api_instance->geocodes($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();
my $geocodes = []; # array[GeocodesRequestFeature] | Data to be geocoded.

eval { 
    my $result = $api_instance->geocodes(geocodes => $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()
geocodes =  # array[GeocodesRequestFeature] | Data to be geocoded.

try: 
    # Geocode from bulk json address. From full text or splited in fields.
    api_response = api_instance.geocodes(geocodes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GeocodeApi->geocodes: %s\n" % e)

Parameters

Form parameters
Name Description
geocodes*

Responses

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


Reverse

reverse

Reverse geocode an address.

Reverse geocode an address.


/0.1/reverse

Usage and SDK Samples

curl -X get "https://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];

// Reverse geocode an address.
[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
            {
                // Reverse geocode an address.
                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\Api\ReverseApi();
$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: 
    # Reverse geocode an address.
    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*
lng*

Responses

Status: 200 - Reverse geocode an address.


reverses

Reverse geocode from bulk json address.

Reverse geocode from bulk json address.


/0.1/reverse

Usage and SDK Samples

curl -X post "https://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();
        array[ReversesRequestFeature] reverses = ; // array[ReversesRequestFeature] | Data to be reversed.
        try {
            ReversesResult result = apiInstance.reverses(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();
        array[ReversesRequestFeature] reverses = ; // array[ReversesRequestFeature] | Data to be reversed.
        try {
            ReversesResult result = apiInstance.reverses(reverses);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReverseApi#reverses");
            e.printStackTrace();
        }
    }
}
array[ReversesRequestFeature] *reverses = ; // Data to be reversed.

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

// Reverse geocode from bulk json address.
[apiInstance reversesWith:reverses
              completionHandler: ^(ReversesResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GeocoderApi = require('geocoder_api');

var api = new GeocoderApi.ReverseApi()

var reverses = ; // {array[ReversesRequestFeature]} Data to be reversed.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reverses(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();
            var reverses = new array[ReversesRequestFeature](); // array[ReversesRequestFeature] | Data to be reversed.

            try
            {
                // Reverse geocode from bulk json address.
                ReversesResult result = apiInstance.reverses(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\Api\ReverseApi();
$reverses = ; // array[ReversesRequestFeature] | Data to be reversed.

try {
    $result = $api_instance->reverses($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();
my $reverses = []; # array[ReversesRequestFeature] | Data to be reversed.

eval { 
    my $result = $api_instance->reverses(reverses => $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()
reverses =  # array[ReversesRequestFeature] | Data to be reversed.

try: 
    # Reverse geocode from bulk json address.
    api_response = api_instance.reverses(reverses)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReverseApi->reverses: %s\n" % e)

Parameters

Form parameters
Name Description
reverses*

Responses

Status: 201 - Reverse geocode from bulk json address.


Generated 2018-02-09T15:32:51.346+01:00