Mapy.cz URL

With the URL function of Mapy.cz, you can easily construct URLs that Mapy.cz understands (both the website and mobile application). By calling this URL, you trigger a selected function (map display, search, planning, etc.).

Thanks to these URLs, you can easily launch/open Mapy.cz from your website or application. Calling it on the web opens the Mapy.cz website. Calling it on mobile launches the Mapy.cz mobile application (if installed, otherwise the web version).

Prefix for all URLs: https://mapy.cz/fnc/v1

Mapy.cz URLs are freely available. They do not require an API key for their invocation.

/showmap

This function is used to set the map display at defined coordinates and to display a point.

Parameters:

mapsetstringDefines the mapset on the displayed map. The default value is “basic”. Valid values are: basic, outdoor, winter, aerial, traffic.
centerstringDefines the center of the map (also the position of the point if the marker parameter is set to true). The default value is an empty string. Format: lon,lat.
zoomnumberDefines the map zoom. The default value is an empty string.
markerbooleanDetermines whether a marker should be displayed at the specified coordinates (center parameter). The default value is false.

Examples:

/search

This function is used to display search results.

Parameters:

mapsetstringDefines the mapset on the displayed map. The default value is “basic”. Valid values are: basic, outdoor, winter, aerial, traffic.
centerstringDefines the center of the map. The default value is an empty string. Format: lon,lat.
zoomnumberDefines the map zoom. The default value is an empty string.
querystringDefines the search query. The default value is an empty string.

Examples:

/route

This function is used to display planned routes.

Parameters:

mapsetstringDefines the mapset on the displayed map. The default value is “basic”. Valid values are: basic, outdoor, winter, aerial, traffic.
startstringDefines the starting point. The default value is an empty string. Format: lon,lat.
endstringDefines the destination point. The default value is an empty string. Format: lon,lat.
routeTypestringDefines the planning type. The default value is “car_fast”. Valid values are: car_fast, car_fast_traffic, car_short, foot_fast, bike_road, bike_mountain.
waypointsstringDefines waypoints (max 15). The default value is an empty string. Format: lon,lat; lon,lat;…
navigatebooleanDetermines whether to immediately activate navigation in the mobile application. The default value is false.
Note: This parameter is only supported by newer versions of applications released from April 2024 onwards. Older applications only open the route, and navigation can be started manually.

Examples:

“`