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
Python 2.7 and 3.4+
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 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 locationiqPlease 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)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 |
- Type: API key
- API key parameter name: key
- Location: URL query string