Apple Maps

Get Apple Maps driving, walking, or cycling directions

Returns Apple Maps routes between an origin and a destination, with optional intermediate stops, for driving, walking, or cycling. Each route carries its name, whether it is Apple's main or an alternate route, distance, live/historic/free-flow durations, toll and highway flags, Apple's route description and traffic note, and per-leg turn-by-turn steps (maneuver, road, shield, instruction text, distance, duration); detail=full adds each leg's path as coordinates. Departure time and avoid-tolls/highways/stairs preferences are supported. Transit routing is not available.

get/apple-maps/directions

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/apple-maps/directions
  • Auth: API key in header x-api-key

Query parameters

origin_latitudenumber required

Origin latitude

origin_longitudenumber required

Origin longitude

destination_latitudenumber required

Destination latitude

destination_longitudenumber required

Destination longitude

viastring

Intermediate stops as lat,lng pairs separated by |, at most 8

mode'driving' | 'walking' | 'cycling'

Travel mode. Defaults to driving.

avoid_tollsboolean

Driving only: prefer routes without tolls

avoid_highwaysboolean

Driving only: prefer routes without highways

avoid_stairsboolean

Walking only: prefer routes without stairs

depart_atstring

Departure time as RFC 3339 for traffic-aware estimates. Defaults to now.

detail'summary' | 'steps' | 'full'

How much of each route to return. Defaults to steps.

langstring

Language for road names and instructions as a BCP 47 tag. Defaults to en-US.

countrystring

Two-letter ISO 3166-1 country code. Defaults to US.

Headers

x-api-keystring required

API key required

Response

OK

codeinteger

Code is the HTTP status code or a custom code used to indicate the result of the request @example 200

msgunknown

Changes

No recorded changes to this operation across all 2 revisions of this API.