Skip to content

drupeshUnwired/locationiq-python-client

 
 

Repository files navigation

locationiq

LocationIQ provides flexible enterprise-grade location based solutions. We work with developers, startups and enterprises worldwide serving billions of requests everyday. This page provides an overview of the technical aspects of our API and will help you get started.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/location-iq/locationiq-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/location-iq/locationiq-python-client.git)

Then import the package:

import locationiq 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import locationiq

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import locationiq
from locationiq.rest import ApiException
from pprint import pprint

# Configure API key authorization: key
configuration = locationiq.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'

# create an instance of the API class
api_instance = locationiq.BalanceApi(locationiq.ApiClient(configuration))

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

Documentation for API Endpoints

All URIs are relative to https://eu1.locationiq.com/v1

Class Method HTTP request Description
BalanceApi balance GET /balance.php
SearchApi search GET /search.php Forward Geocoding
ReverseApi reverse GET /reverse.php Reverse Geocoding

Documentation For Models

Documentation For Authorization

key

  • Type: API key
  • API key parameter name: key
  • Location: URL query string

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 98.7%
  • Shell 1.3%