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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyonemap-0.6.0.tar.gz.
File metadata
- Download URL: pyonemap-0.6.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3abbde3d4e2b1ba0b819669dc57837cf8458f0fb3bea86455673147699d6a34
|
|
| MD5 |
c35aab44f8d1cc976b65faf3791a868d
|
|
| BLAKE2b-256 |
3f4de24809ffbd0e6d46d91ec50dc560a294c5992c2351a2bb3cc02a317a0e11
|
File details
Details for the file pyonemap-0.6.0-py3-none-any.whl.
File metadata
- Download URL: pyonemap-0.6.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b9ae74616e753d7371e24c61d78535bf1f5aa366479d6e3ea40a045b67918db
|
|
| MD5 |
288b94e3840b2832d7847360ea3e71af
|
|
| BLAKE2b-256 |
537040d5ce7b8e9c69cc0c653ee5b87d3d7a7254cbe1dcb9969b1185ce4d6c69
|