Skip to main content

PyOneMap is a Python package that provides a convenient and easy-to-use interface for interacting with the Singapore Land Authority's (SLA) OneMap API. With PyOneMap, you can retrieve various geospatial data and information from OneMap's services directly from your Python code.

Project description

PyOneMap - Python Wrapper for SLA's OneMap API

PyOneMap is a Python package that provides a convenient and easy-to-use interface for interacting with the Singapore Land Authority's (SLA) OneMap API. With PyOneMap, you can retrieve various geospatial data and information from OneMap's services directly from your Python code.

Features

  • Retrieve location details such as addresses, postal codes, and coordinates.
  • Search for places of interest, amenities, and landmarks in Singapore.
  • Perform geocoding and reverse geocoding operations effortlessly.
  • Access map layers and thematic data provided by the OneMap API.

Installation

You can install PyOneMap using pip:

pip install pyonemap

Usage

from pyonemap import OneMap

# Initialize the OneMapAPI client
onemap = OneMap('<--Insert your OneMap API token here-->')

# Get location details
location = onemap.search("5 Havelock Road")
print(location)

geocode = onemap.revGeoCodeXy(24291.97788882387, 31373.0117224489)
print(geocode)

geocode = onemap.revGeoCode(1.3254295, 103.9005321)
print(geocode)

Source

https://github.com/chengguan/pyonemap

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

pyonemap-0.7.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyonemap-0.7.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pyonemap-0.7.0.tar.gz.

File metadata

  • Download URL: pyonemap-0.7.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyonemap-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ee329dc096c948b6c924e174258a27bb64e29ede23707f9d5c92c09aad96ccc1
MD5 2e5f485a5152561feb053af799c8b606
BLAKE2b-256 5da975bc0ea466c39a158195b62988ece744d6f67e58501aa8002f6871731f54

See more details on using hashes here.

File details

Details for the file pyonemap-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: pyonemap-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyonemap-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb0b126c215d456ae047abb05e1ab54599c1e3410521f80e12a9d83d4041e2cb
MD5 0074a63cd180e91d498e8e79d518d30e
BLAKE2b-256 014c8bfd366ff296a49ef7a16aa33892ae8b615aa465ed1c8843642b6b1d9dee

See more details on using hashes here.

Supported by

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