Skip to content

App links in Trek2There

Marika Vertzonis edited this page Sep 23, 2016 · 2 revisions

Trek2There is capable of integrating with other apps using a custom URL scheme. A URL scheme can be used in a web browser to open apps on your desktop or device, or from within another app. ArcGIS apps that can be opened with a URL scheme include Trek2There, Survey123, Collector,and Navigator.

The following describes how to construct a URL that opens Trek2There. To start, ensure that trek2There is installed on your device. The URL's shown below can be embedded into your own native or web app. The same URL can also be entered directly into a web browser for testing.

  1. Type arcgis-trek2there:// into your browser. This will automatically open Trek2There (or prompt you to do so).

  2. Add coordinates to the URL, defining the target location. To do this, add &stop=, to your URL and then enter the coordinates. Type the coordinates latitude then longitude in decimal degrees, separated by a single comma. Your URL should look similar to the following: arcgis-trek2there://?stop=-37.830379, 144.965530

  3. If once you arrive at your destination, you want to be able to return to the referring app, be sure to include a call back to the originating app. You can also specify the text the user will see when they finish using Trek2There. In the following example, the link will take the user back to Survey123. <a href="arcgis-trek2there://?stop=-37.830379, 144.965530&callbackprompt=Survey123&callback=arcgis-survey123://">Trek to this location</a>

For more information see information on custom URL schemes for other Esri apps.

Clone this wiki locally