Calling the Mapy.com mobile application
The Mapy.com application for Android and iOS can be called from your applications, offering users options such as opening a specific location, coordinates, search, or directions to your company. Below are instructions on how to establish such integration:
Android
Android Geo URI
The application responds to the standard Geo URI scheme, primarily used for marking a location on the map or searching for a place.
Official description: https://en.wikipedia.org/wiki/Geo_URI_scheme
Examples:
intent | description |
geo:50.0710792,14.40094 | opens the location with the specified coordinates in the application |
geo:50.0710792,14.40094?q=Nový Smíchov | performs a search for “Nový Smíchov” in the vicinity of the specified coordinates |
geo:0,0?q=bankomaty | performs a search for “bankomaty” in the vicinity of the user’s position or the center of the map viewport if the user has GPS disabled |
It is possible to call with the application package ID cz.seznam.mapy
(opens directly in mapy.com) or without it, and other applications supporting the Geo URI will respond to the intent as well.
package id + intent | description |
cz.seznam.mapy geo:50.0710792,14.40094 | opens the mapy.com application and shows the location with the specified coordinates |
Navigation Intent
Support for the intent response, which is supported by Google Maps. It is based on: https://developers.google.com/maps/documentation/urls/android-intents#launch-turn-by-turn-navigation
intent | description |
google.navigation:q=a+street+address example: adb shell am start -a android.intent.action.VIEW -d "google.navigation:q="Lomnice+nad+Popelkou" | – initiates a place search – parameters mode and avoid do not work |
google.navigation:q=latitude,longitude&mode=mode example: adb shell am start -a android.intent.action.VIEW -d "google.navigation:q=50.5857571,14.6373946\&mode=d" | – starts navigation – supports the mode parameter (optional): d – driving b – biking l – transit w – walking The last selected mode during navigation will be used (tourist, fastest with traffic, etc.) – if mode is not specified, the default mode (driving) will be used – avoid is not supported |
iOS
Geo URI iOS
The application responds to the standard geo URI scheme on iOS. It is mainly used for marking a location on the map or searching for a place.
Official description: https://en.wikipedia.org/wiki/Geo_URI_scheme
Examples:
intent | description |
geo:50.0710792,14.40094 | Opens the location on the specified coordinates in the application. |
geo:50.0710792,14.40094?q=Nový Smíchov | Performs a search for “Nový Smíchov” around the given coordinates. |
geo:0,0?q=bankomaty | Searches for “bankomaty” in the vicinity of the user’s position or around the center of the application’s map viewport (if the user has GPS turned off). |
Currently, it is not possible to directly target the opening of the application.