Observed since 20 Oct, 17:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Shared service for the azure maps location service
The abs-geolocation-core package provides a set of utilities powered by Azure Maps for geolocation services. It includes features such as geocoding, reverse geocoding, distance calculations, routing, elevation data, weather information, and traffic data.
To install the package, use the following command:
pip install abs-geolocation-core
Here is a basic example of how to use the abs-geolocation-core package:
import asyncio
from abs_geolocation_core.location_service import AzureMapsAuth, LocationService
async def main():
auth = AzureMapsAuth(subscription_key="<YOUR_KEY>") # or sas_token_provider=lambda: "sv=...&sig=..."
svc = LocationService(auth)
places = await svc.geocode_address("Mumbai Central, Mumbai")
print(places[0]["position"]) # lat/lon from geocode result
origin = (19.0760, 72.8777) # Mumbai
dest = (18.5204, 73.8567) # Pune
route = await svc.get_route([origin, dest])
print(route["routes"][0]["summary"])
best = await svc.nearest_by_drive_time(origin, [(18.5204, 73.8567), (21.1458, 79.0882)])
print(best)
await svc.aclose()
if __name__ == "__main__":
asyncio.run(main())
The service maps to the following Azure Maps REST endpoints (host: https://atlas.microsoft.com):
GET /search/address/json, GET /search/address/reverse/json, GET /search/fuzzy/json (api-version: 1.0 configurable)GET /route/directions/json (api-version: configurable), POST /route/matrix/sync/json (matrix api-version: configurable)GET /elevation/point/json, GET /elevation/line/json (api-version: 1.0 configurable)GET /weather/currentConditions/json (api-version: 1.1 configurable)GET /traffic/flowSegment/relative/json (api-version: 1.0 configurable)Refer to Azure Maps REST docs for details on parameters and responses:
You can override API versions and timeouts via the LocationService constructor:
svc = LocationService(
AzureMapsAuth(subscription_key="<KEY>"),
api_version_search="1.0",
api_version_route="1.0",
api_version_matrix="2.0",
api_version_elevation="1.0",
api_version_weather="1.1",
api_version_traffic="1.0",
timeout=10.0,
)
For SAS authentication:
svc = LocationService(
AzureMapsAuth(sas_token_provider=lambda: "<SAS_TOKEN>"),
)
This project is licensed under the MIT License - see the LICENSE file for details.
For more information, please contact info@autobridgesystems.com.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 1 Jun 2026 | 21 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:64fc99f6c13d1b709a06fa040d031dcc4dd6edc94e93875b3adbb2aa63200ebe