Python client library for Ola Maps API Web Services
Project description
OLA Maps Python Package (unofficial)
A Python wrapper for the OLA Maps API, providing easy-to-use abstractions for developers.
Installation
Install the package using pip:
pip install olamaps
Supported APIs
- Geocoding
- Reverse geocoding
Future Plans
- Directions
Authentication
There are two ways to authenticate:
-
Using API key
os.environ["OLAMAPS_API_KEY"] = "your_api_key" # OR client = Client(api_key="your_api_key_here")
-
Or using
client_id
andclient_secret
os.environ["OLAMAPS_CLIENT_ID"] = "your_client_id" os.environ["OLAMAPS_CLIENT_SECRET"] = "your_client_secret" # OR client = Client(client_id="your_client_id", client_secret="your_client_secret")
Usage
import os
from olamaps import Client
# Initialize the client
client = Client()
# Geocode an address
results = client.geocode("MG Road, Bangalore")
# Reverse geocode a latitude-longitude pair
results = client.reverse_geocode(lat=12.9519408, lng=77.6381845)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This project is not officially associated with or endorsed by OLA. Use of the OLA Maps API is subject to OLA's terms of service.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
olamaps-0.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file olamaps-0.1.1.tar.gz
.
File metadata
- Download URL: olamaps-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.17 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14df99c2ea69a02dd8d4397743fc2a0a7e709ffeb78b6d90ce64a04c54fdf8f |
|
MD5 | 2103e8adb5c1f934e4c8344ba4b61bd0 |
|
BLAKE2b-256 | 458bb6a3385e2170264389268229a4e57098efc9417fe3ca42938b4ba52a24b5 |
File details
Details for the file olamaps-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: olamaps-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.17 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e6e0c45c197eb5c64edb469f4eee78086ba3153349debdb59dd478f159faef |
|
MD5 | 4ca3dc562d1c5f6bc112b980e33ed2af |
|
BLAKE2b-256 | 463efebdde17798e76e3d76942295d51af32607a5e1b83494b5e637c29c0defa |