Skip to content

kmService

build codecov PyPI version


Documentation: https://Hazedd.github.io/kmService/

Source Code: https://github.com/Hazedd/kmService


The dutch rail infrastructure utilizes kilometer measurements to pinpoint the location of objects along the linear infrastructure. This service aims to give you reference information from km and geocodes.

Location Determination and Accuracy Disclaimer

While every effort has been made to ensure accuracy, it is important to note that location-based services are subject to inherent limitations and uncertainties. Therefore, users are advised to use the provided location information cautiously and not solely rely on it for critical decision-making purposes. We cannot guarantee the absolute accuracy or completeness of the data and hereby disclaim any warranties, express or implied, regarding its reliability or fitness for a particular purpose.

By utilizing this application and its location-based features, users acknowledge and accept the inherent limitations and uncertainties associated with location determination.

Install

pip install kmService

Usage

import asyncio
from kmService import KmService, get_km_service

if async:
    km_service_instance = await KmService.factory()

else:
    km_service_instance = get_km_service(url)

response = km_service_instance.get_km(x, y)
print(response.display)
print(response.geojson_string())

This project is depends on the following awesome stuff!

License

This project is licensed under the terms of the MIT license.