Contents

Adopting unified Maps URLs

Access Maps URLs and options for displaying Maps information across Apple platforms.

Overview

In iOS 18.4 and later, macOS 15.4 and later, and watchOS 11.4 and later, the Maps platform provides a new, unified collection of URLs that offers the same functionality on all devices. Use the Maps path components to control aspects of the Maps display, ranging from the presentation of a simple map centered on a location you provide, to finding specific points of interest (POIs) and providing complex multistop driving, walking, or transit directions.

Frame the map display

Use the /frame path component and query parameters to control aspects of the map’s framing and representation. This component allows you to set a map’s orientation, style, visible area (the map’s span), and other perspective controls, as described in the table below.

Parameter

Description

center

Frames the map on a specific center described by comma-separated coordinate pair, such as 40.773957,-73.970974.

span

Specifies the size of the area around the center point of the search in degrees of longitude and latitude, for example 0.05,0.05, which is approximately one km for these examples. For more information on what these distances mean at different latitudes, see doc://com.apple.documentation/documentation/mapkit/mkcoordinatespan/init(latitudedelta:longitudedelta:).

mode

Sets the map’s mode to optionally allow location tracking: values can be follow or follow-with-heading, or none.

heading

Sets the direction toward which the map orients.

pitch

Sets the the vertical angle the map is oriented to.

distance

Sets the apparent distance from the viewer to the map surface; this parameter also affects the map’s span.

map

 Sets the type of map to display: values can be explore, driving, transit, satellite, or hybrid.

The following /frame path component examples demonstrate different kinds of map framing, along with details, where necessary, on how specific parameters affect what the map displays.

Perform general searches

You can use the /search path component to search for specific kinds of locations using several query parameters.

Parameter

Description

center

Searches the map starting at a specific center point described by a comma-separated coordinate pair, such as 40.773957,-73.970974.

query

A search string. This parameter can be a general point of interest (POI) such as pizza, or a specific location such as an address string, such as 1000 Fifth Avenue, NY, NY, or a city name such as San Francisco. For a list of POIs, see Mkpointofinterestcategory.

span

A span that specifies the size of the area around the center point of the search in degrees of longitude and latitude, for example 0.05,0.05 which is approximately 1 km for these examples. For more information on what these distances mean at different latitudes, see doc://com.apple.documentation/documentation/mapkit/mkcoordinatespan/init(latitudedelta:longitudedelta:).

The following /search path component examples demonstrate how to use the search path component to find pizza, one of Maps’ POI identifiers, using different kinds of location and distance descriptions.

Show the place card of a POI

Using the /place path component enables you to specify a place card that shows useful details about points of interest on the map. Use the parameters in the following table to specify a POI and optionally the place card name and map type.

Parameter

Description

coordinate

The latitude and longitude of the location, as a comma-separated pair of floating point values that represent latitude and longitude.

address

The address of the location, such as “1000 Fifth Ave, New York, NY”.

place-id

A Place ID is a unique identifier for a POI, such as I521E602783BA9605, The Metropolitan Museum of Art at 1000 Fifth Avenue, New York, NY 10028, United States; for more information on Place IDs, see Identifying Unique Locations With Place Ids.

map

The type of map to display. Maps supports explore, driving, transit, satellite, or hybrid as the map type.

The following examples demonstrate different place card details along with details, where necessary, on how specific parameters affect what the maps displays.

Explore the environment using Look Around

Use the /look-around path component and one of the following parameters to specify the initial location to start a session using Look Around.

Parameter

Description

coordinate

The latitude and longitude of the location as a comma-separated pair of floating point values that represent latitude and longitude.

address

The address of the location. This parameter is an address string, such as “1000 Fifth Avenue, New York, NY 10028”.

place-id

A Place ID, which is a unique identifier for a point of interest, such as I521E602783BA9605, The Metropolitan Museum of Art at 1000 Fifth Avenue, New York, NY 10028, United States; for more information on Place IDs, see Identifying Unique Locations With Place Ids.

The following examples demonstrate Look Around experiences in different cities:

Request directions

Use the /directions path component and following query parameters in several combinations to request directions.

Parameters

Description

Values

Notes

source

The starting point of the navigation route

Specify an address, coordinate, or a place name

source-place-id

An optional place identifier for the source parameter

A Place ID

Specifying a source-place-id also requires the source parameter

destination

The ending destination of the navigation route

Specify an address, coordinate, or a place name

destination-place-id

An optional place identifier for the destination parameter

A Place ID

Specifying a destination-place-id also requires the destination parameter

waypoint

This parameter describes destinations in between the source and destination you can use for multistop routing

Specify an address, coordinate, or a place name

You can specify multiple waypoints by repeating the waypoint parameter

waypoint-place-id

An optional place identifier for the waypoint parameter

A Place ID, which is a unique identifier for a point of interest, such as I521E602783BA9605, The Metropolitan Museum of Art at 1000 Fifth Avenue, New York, NY 10028, United States; for more information on Place IDs, see Identifying Unique Locations With Place Ids

mode

The transportation mode

You can specify one of driving, walking, transit, or cycling

avoid

The route preferences are specific to the transportation mode

You can specify tolls, highways, busy-roads, or stairs

Specify multiple options by using a comma (,) as the delimiter

transit-preferences

The preferred method of travel for transit

Available modes are bus, subway, commuter, or ferry

Specify multiple options by using the comma (,) as the delimiter

start

Starts navigation after the delay in seconds that you specify

An integer that indicates the number of seconds to delay

You can use the query parameters to the directions path in a large number of combinations to control how Maps displays directions. Limitations on the combinators or side effect that they may have are listed in the table above.

Find guides and curated places

Using the /guides path component, you can ask Maps to provide details about place guides and curated collections using the following URL: https://maps.apple.com/guides.

Report a problem

If you find an issue with Apple Maps, you can report a problem using the /report-a-problem path component, followed by any of the following parameters:

Parameters

Description

Values

coordinate

The latitude and longitude of the location

A comma-separated pair of floating point values that represent latitude and longitude

address

The address of the location

An address string, such as 1000 Fifth Avenue

place-id

The unique Place ID for a point of interest; for example, the place ID I8CAD8EFA77AA3D42 represents Bethesda Terrace in New York City’s Central Park

For more information on Place IDs, see Identifying Unique Locations With Place Ids

Example problem reports

You can report a problem using the same kinds of location descriptors the other queries use. The following examples show how to report a problem using a coordinate, an address, or a Place ID.

When you open the report-a-problem URL, Maps opens a problem report sheet to ask a person for more detail on the nature of the problem, which Apple uses to investigate the report.

Retrieve a full Maps URL from a shortened URL

When people share a map URL from Maps, this system creates a shortened version that’s more efficient to send in the app, for example, Messages or Mail. If you need to recover the full URL, follow these steps:

  1. Check to see if the URL is a shortened Apple Maps URL; the host portion of an Apple shortened Maps URLs always end in maps.apple (no .com).

  2. Attempt to access the URL programmatically, the full Apple Maps URL is accessible from the HTTP 301 redirect response that the maps.apple server returns.

See Also

The MapKit APIs