San Marino · Maps, Routing & Logistics APIs
Check the available services and recorded examples for San Marino. Coverage varies by operation and location.
Service coverage in San MarinoService coverage in San Marino
Based on configured datasets, not a live health check or a guarantee for every coordinate. Validate representative requests before production.
Truck routing and load planning
Plan a route using vehicle dimensions and weight. Use load planning separately to check how items fit in a truck or container.
Cross-border road coverage
The Routing API can calculate a cross-border car route in one request when its stops are connected on a supported road network.
Send the origin, destination and any stops in order, along with the loaded vehicle dimensions, gross weight, heaviest axle load and total axle count. Truck Routing can cross country borders where the mapped road network has a connected route suitable for that vehicle.
Truck Routing API →Navigation
- Routing APIConfigured
Calculate a road route through the points in the supplied order for driving, cycling or walking. Request instructions with steps=true and select GeoJSON with geometries=geojson.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/v1/osrm/route/v1/{profile}/{coordinates} - Map Matching APIConfigured
Snaps imprecise GPS traces to the real road network (snap to road). Used to clean up noise in GPS signals.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/v1/osrm/match/v1/{profile}/{coordinates} - Nearest APIConfigured
Snaps any coordinate to the nearest real road segment and returns information about the road name.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/v1/osrm/nearest/v1/{profile}/{coordinates} - Directions APIConfigured
Returns turn-by-turn navigation between two or more waypoints, with a clean instruction list (text, distance, duration, maneuver type and location). Supports car, bike and foot, plus up to 3 alternative routes in a single call.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/1/directions - Alternative Routes APIConfigured
Returns turn-by-turn navigation between two or more waypoints, with a clean instruction list (text, distance, duration, maneuver type and location). Supports car, bike and foot, plus up to 3 alternative routes in a single call.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/1/directions - Snap to Road APIConfigured
Snaps raw, imprecise GPS points onto the nearest position on the road network. Repeat the point parameter for each coordinate (up to 100).
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/1/snap - Fuel Estimate APIConfigured
Estimate fuel volume and trip value from distance, loaded weight, observed empty/full consumption and your fuel price. Use it alone or include fuel in a Truck request.
Uses your distance, load and measured consumption. Standalone estimates do not depend on a country dataset.
POST /api/v1/fuel/estimate - Truck Routing APIConfigured
Plan truck routes within and across countries on connected roads. Send the dimensions and loaded weight of the vehicle with each request.
Mapped roads in the configured truck dataset. A connected route suitable for the loaded vehicle is required. Restriction detail varies by road.
POST /api/v1/truck/route - Search Along Route APIConfigured
Discover useful stops and compare their additional driving time.
Requires a connected driving route. Place results and detours depend on local data.
POST /api/v1/places/along-route - Walking routesConfigured
Calculate a road route through the points in the supplied order for driving, cycling or walking. Request instructions with steps=true and select GeoJSON with geometries=geojson.
This country is included in the configured walking and cycling dataset. Each route still requires connected paths and permission for the selected mode.
GET /api/v1/osrm/route/v1/walking/{coordinates} - Cycling routesConfigured
Calculate a road route through the points in the supplied order for driving, cycling or walking. Request instructions with steps=true and select GeoJSON with geometries=geojson.
This country is included in the configured walking and cycling dataset. Each route still requires connected paths and permission for the selected mode.
GET /api/v1/osrm/route/v1/cycling/{coordinates}
Plan deliveries and loading
- Route Optimization APIConfigured
Plans fleet routes with capacity, time windows, skills and paired pickup/delivery constraints. A bounded heuristic reduces travel time without guaranteeing a global optimum. Unassigned tasks remain in solution.unassigned; invalid inputs are rejected as a whole.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
POST /api/1/vrp - Matrix APIConfigured
Calculate travel times, distances or both between origins and destinations. Use sources and destinations to select indexes in the coordinate list.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/v1/osrm/table/v1/{profile}/{coordinates} - Isochrones APIConfigured
Estimates reachability from sampled road travel times. quality.status is estimated when every sampled direction has a reachable point; otherwise it is insufficient_data and polygons is empty. Empty results do not prove there are no reachable roads. The boundary is approximate; only time limits are supported.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/1/isochrone - Trip API (TSP)Configured
Order stops for one vehicle using the road network. The service can return a round trip or an open route. For an open route, send roundtrip=false&source=first&destination=last. The order is not guaranteed to be optimal.
A driving graph is configured for this market. Coordinates must share a connected graph and snap to a road within 2 km. This does not imply live traffic or truck-specific routing.
GET /api/v1/osrm/trip/v1/{profile}/{coordinates} - Load PlanningDepends on data or access
Plan mixed cargo for trucks, trailers and containers. Review stacking, loading order and space in 3D, or integrate the Load Planning API into your own software.
Uses your equipment and cargo measurements. A project-bound key and the applicable paid access are required.
POST /api/v1/load-plansGET /api/v1/load-plans/{id}
Search
- Geocoding APIConfigured
Turn a search text into geographic coordinates (forward) or coordinates into an address (reverse). Fast, typo-tolerant autocomplete that covers streets, addresses and points of interest (cafes, shops, hotels, offices). Ideal for search-as-you-type.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
GET /api/1/geocode - Places APIConfigured
Find points of interest near a location — cafes, shops, hotels, ATMs, pharmacies and more — filtered by category and radius, sorted by distance.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
GET /api/1/places - Autocomplete APIConfigured
Fast, typo-tolerant place suggestions as the user types, with optional location bias.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
GET /api/1/autocomplete - Batch Geocoding APIConfigured
Geocode up to 100 address strings per request. Results follow input order, and each query costs one credit.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
POST /api/1/geocode/batch - Natural Language SearchConfigured
Find places using a short English query.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
POST /api/v1/search/natural - Place detailsConfigured
Read source attributes from a retrieved suggestion or route search.
Place details depend on the available attributes of the returned source record.
POST /api/v1/places/details - Structured Geocoding APIConfigured
Search addresses with street, city, postcode and country components.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
POST /api/v1/search/structured - Suggest & Retrieve APIConfigured
Build place search with suggestions and a secure retrieval step.
The global search index is configured. Completeness, address detail and language matching depend on source data; every address or POI is not guaranteed.
POST /api/v1/search/suggestPOST /api/v1/search/retrieve - Reverse GeocodingLimited detail
Turn a search text into geographic coordinates (forward) or coordinates into an address (reverse). Fast, typo-tolerant autocomplete that covers streets, addresses and points of interest (cafes, shops, hotels, offices). Ideal for search-as-you-type.
Reverse lookup uses a nearby globally indexed place within 1 km when detailed data is unavailable. It may not be a street or house address; inspect accuracy and distance.
GET /api/1/geocode?reverse=true&point={lat,lng}
Maps
- Text-to-style previewConfigured
Describe palette and layer changes, review the map, then apply.
Depends on your workspace, access and supplied datasets, where applicable.
POST /api/v1/studio/preview - Static Maps APIConfigured
Export styled maps as PNG images for reports and applications.
Maps use available basemap layers and your selected style. Local detail varies.
POST /api/v1/maps/static - Studio APIConfigured
Manage map styles, datasets and publication from your application.
Depends on your workspace, access and supplied datasets, where applicable.
GET /api/v1/studio/{resource}POST /api/v1/studio/{resource}
Data
- Location ClusteringConfigured
Groups (clusters) given coordinates by their geographic proximity and density.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
POST /api/1/cluster - Timezone APIConfigured
Get the IANA time zone, current UTC offset, DST status and local time for any coordinate on Earth.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
GET /api/1/timezone - Elevation APIDepends on data or access
Height above sea level, in metres, for any coordinate — one point or a whole route profile.
Elevation tiles load on demand. Ocean, missing or unavailable tiles can return no data; validate your coordinates.
GET /api/1/elevation - Boundary Lookup APINot currently configured
Find which country, state, city and district a coordinate falls in — with the boundary polygon on request.
A detailed administrative-boundary dataset has not been accepted for this country. A global country outline is not a substitute for local administrative boundaries.
GET /api/1/boundary - Geofencing APIConfigured
Test in one call which of your zones each point falls inside — polygon or circular fences.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
POST /api/1/geofence - Elevation Profile APIDepends on data or access
Elevation at every point of a path plus total ascent, descent and distance — a full route profile.
Elevation tiles load on demand. Ocean, missing or unavailable tiles can return no data; validate your coordinates.
POST /api/1/elevation/profile - Solar APIConfigured
Sunrise, sunset, twilight, solar noon and day length for any coordinate and date.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
GET /api/1/solar - Geometry Utilities APIConfigured
Distance, bearing, area, centroid, simplification and polyline encode/decode — spatial math as a service.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
POST /api/1/geometry - Coordinate Conversion APIConfigured
Convert latitude/longitude to and from UTM and MGRS grid references.
Calculated from valid input coordinates or geometries. Operation-specific limits and missing-data cases still apply.
GET /api/1/convert - Country Info APIConfigured
Currency, calling code, languages, capital and flag for any country by ISO code or name.
Uses the country reference record for the selected ISO code.
GET /api/1/country - Dataset Query APIConfigured
Find nearby features in your own uploaded geographic datasets.
Depends on your workspace, access and supplied datasets, where applicable.
POST /api/v1/maps/datasets/{id}/query - Road Data APIDepends on data or access
Speed limits, road attributes and traffic-sign observations within available coverage.
Results depend on road attributes or sign observations at the requested location. Check your coordinates.
POST /api/v1/roads/lookupPOST /api/v1/roads/batch - Road SignsDepends on data or access
Find road sign observations within a map area. Retrieve sign classifications, coordinates, directions and observation dates with cursor pagination.
Results depend on road attributes or sign observations at the requested location. Check your coordinates.
POST /api/v1/roads/signs - Speed Limit LookupNot currently configured
Read the mapped passenger-car speed limit near a coordinate. A missing or ambiguous limit returns null.
No dedicated speed limit lookup dataset is configured here.
GET /api/1/speed-limit
Platform Integration Guide
- Async jobs
Operations: geocode_batch, matrix, optimize. POST /api/jobs returns 202 and a job ID. Reusing the same Idempotency-Key and payload returns the existing job; a different payload returns 409.
POST /api/jobsGET /api/jobsGET /api/jobs/{id}DELETE /api/jobs/{id} - Sandbox API
Validate response parsing in the fixture sandbox before a paid live call.
POST /api/sandbox - Source metadata
Check data sources, geographic coverage and freshness by service.
GET /api/source-metadata - Map styles and vector tiles
Load public basemaps or published styles in MapLibre. Public requests need no API key and use zero credits. Use the tile URLs supplied by the style and preserve attribution.
GET /api/basemaps/{style}GET /api/map-styles/{id}GET /api/map-styles/{id}/tiles/{dataset}/{z}/{x}/{y}GET /api/private-maps/{id}GET /api/private-maps/{id}/tiles/{dataset}/{z}/{x}/{y} - Mobile Access
Connect your mobile application without embedding a private API key.
POST /api/mobile/challengePOST /api/mobile/token - Compatibility endpoints
For existing integrations, check coordinate order and response units before switching to a canonical API.
GET /api/v1/route/{profile}/{coordinates}GET /api/1/routeGET /api/1/route/infoGET /api/1/matrixPOST /api/1/matrixPOST /api/1/matrix/calculatePOST /api/1/matchPOST /api/1/elevationPOST /api/1/optimizePOST /api/1/vrp/optimizePOST /api/1/cluster/calculatePOST /api/1/batch-geocode
API examples for San Marino
Explore a prepared API request and its verified response. Copy the request in one click.
Loading map…
City of San Marino
The Geocoding API returns matching names and coordinates. This request limits the search to this country or territory.
- City of San Marino
Saved example · Nov 10, 2026
curl --get 'https://osrmroute.com/api/1/geocode' \
-H 'Authorization: Bearer YOUR_API_KEY' \
--data-urlencode 'q=City of San Marino' \
--data-urlencode 'country=SM' \
--data-urlencode 'lang=en'{
"hits": [
{
"name": "City of San Marino, San Marino",
"countrycode": "SM",
"point": {
"lng": 12.4466991,
"lat": 43.9363996
},
"city": null,
"postcode": "47890"
}
]
}Request additional service coverage
Tell us which country, service and example location you need.