Mapradar
Turn addresses into coordinates and find nearby banks, hospitals, and other amenities.
What It Does
Mapradar is a location intelligence library. Give it an address like "Shibuya, Tokyo" and it returns:
- Coordinates - Latitude and longitude
- Nearby Services - Banks, hospitals, schools, fuel stations within a radius
- Distance - How far each service is from your location
Built in Rust. Works in both Python and Rust.
Installation
[]
= { = "0.1", = false }
= { = "1", = ["full"] }
Note: Use
default-features = falsefor pure Rust (no Python bindings).
Python:
Rust:
[]
= { = "https://github.com/iamprecieee/mapradar" }
Usage
Python
=
# Find banks and hospitals near an address
=
= await
Geocoding only:
= await
Reverse geocoding:
= await
JSON-RPC format (for microservices):
= await
Rust
use MapradarClient;
use ;
async
Features
| Feature | Description |
|---|---|
| Geocoding | Convert addresses to coordinates |
| Reverse Geocoding | Convert coordinates to addresses |
| Nearby Search | Find banks, hospitals, schools, etc. |
| Parallel Fetching | Search multiple service types at once |
| Caching | Automatic in-memory cache reduces API calls |
| JSON-RPC 2.0 | Built-in format for microservice APIs |
Service Types
| Type | Google Maps Category |
|---|---|
Bank |
bank |
Hospital |
hospital |
School |
school |
Market |
supermarket |
Mall |
shopping_mall |
Restaurant |
restaurant |
FuelStation |
gas_station |
BusStop |
bus_station |
TrainStation |
train_station |
TaxiStand |
taxi_stand |
Landmark |
tourist_attraction |
Configuration
| Variable | Description |
|---|---|
GOOGLE_MAPS_API_KEY |
Your Google Maps API key. Enable Geocoding API and Places API. |
FAQ
Enable these in Google Cloud Console:
- Geocoding API
- Places API (New)
Mapradar does not rate limit. Your Google Maps API quota applies. Use the built-in cache to reduce calls.
No. Cache is in-memory only. It persists for the lifetime of your MapradarClient instance.