OPENMAP function

OPENMAP(SearchQuery?, Latitude?, Longitude?) OPENMAP(SearchQuery?; Latitude?; Longitude?)

SearchQuery

Text (optional)

The search query, which can be any query that Apple Maps and Google Maps can make sense of, including addresses.

Latitude

Number (optional)

The latitude of a location, in decimal degrees. This parameter is ignored if no longitude is provided.

Longitude

Number (optional)

The longitude of a location, in decimal degrees. This parameter is ignored if no latitude is provided.

Returns

Nothing

This function does not return a value.

Opens a map at a given location. OPENMAP("Eiffel Tower")OPENMAP("Eiffel Tower") opens a map showing the Eiffel Tower.

This function can only be used from an action formula. It is typically invoked from a formula associated with the OnPress property of a formula button.

On an iPhone or iPad device, this function opens the map in the Apple Maps app. On Android, the map is opened in the app configured to handle maps (which is typically Google Maps). On other devices, the map is opened in Google Maps in a web browser. Use BROWSE to use another web-based map service.

The location may be specified using either a location in the form of a latitude and a longitude or in the form of a search query. It can also be specified by combining a location and a search query. The search query can be any query that Apple Maps and Google Maps can make sense of, including addresses.

If no parameters are given, this function opens a map app or a web-based map service without specifying an initial location.

Examples

OPENMAP()OPENMAP()

Opens a map without specifying an initial location.

OPENMAP("Eiffel Tower")OPENMAP("Eiffel Tower")

Opens a map showing the Eiffel Tower, using a search query.

OPENMAP(Latitude: 48.8583358, Longitude: 2.2945049)OPENMAP(Latitude: 48,8583358; Longitude: 2,2945049)

Opens a map showing the Eiffel Tower, by providing a position in the form of a latitude and a longitude.