OpenStreetMap APIunofficial
Reverse-geocode coordinates and get driving, walking, and cycling directions using OpenStreetMap's public map.
- openstreetmap.org
all live 4 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull openstreetmap
api-anything call openstreetmap getBikeRoute fromLat=48.85826 fromLon=2.2945 toLat=48.8606 toLon=2.3376Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getBikeRoute(fromLat, fromLon, toLat, toLon) -> distance, duration, stepNames, stepDistances, stepManeuversGet an OSRM bicycle route between two coordinates. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getCarRoute(fromLat, fromLon, toLat, toLon) -> distance, duration, stepNames, stepDistances, stepManeuversGet an OSRM car route between two coordinates. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getFootRoute(fromLat, fromLon, toLat, toLon) -> distance, duration, stepNames, stepDistances, stepManeuversGet an OSRM walking route between two coordinates. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
reverseGeocode(lat, lon) -> displayName, address, lat, lon, osmType, osmIdReverse-geocode coordinates using the map directions panel. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed. Map data is © OpenStreetMap contributors, available under the ODbL. Nominatim and the routing service are volunteer-run: keep usage light, space requests at least one second apart, and follow their usage policies. Do not use these operations for bulk work.
- Coordinates are decimal degrees. Reverse geocoding finds a nearby mapped feature, not necessarily the exact coordinate; available address parts vary.
- Routing covers OSRM driving, walking and cycling. Distance is in metres and duration in seconds. The three step arrays correspond by index; a road name can be empty. Maneuver types and modifiers are OSRM's structured directions rather than localized instruction text.
About these operations
Each operation is a request learned from OpenStreetMap's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.