Skip to main content

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:

  1. Using API key

    os.environ["OLAMAPS_API_KEY"] = "your_api_key"
    
    # OR
    client = Client(api_key="your_api_key_here")
    
  2. Or using client_id and client_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


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.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

olamaps-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file olamaps-0.2.0.tar.gz.

File metadata

  • Download URL: olamaps-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.17 Darwin/23.4.0

File hashes

Hashes for olamaps-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc5779260ee6f49588198a8b5dfeedaee057c018e07ea80848b497df7460756e
MD5 88878c7dea07c7af973f1714470adacb
BLAKE2b-256 e7eb4c0fbabaf9ae4b7e64628d7e11829cd4ed3ab82acbf76a43503a98e740e9

See more details on using hashes here.

File details

Details for the file olamaps-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: olamaps-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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

Hashes for olamaps-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a685c5732edba8e89a5dadce58188d4f7ba19303f84712e552b9eefcd191aa88
MD5 2f14df7195ae78b3023cae1e85da77f0
BLAKE2b-256 0b89357ee42a195569e0bb04ba63dac2adada38f5ab982c497e14da59999924b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page