Route Setup Tutorial

Welcome to the GPS Audio Player setup tutorial. If you face any problems regarding the creation and editing of routes or the usage of the app, do not hesitate and contact us at: info@gpsaudio.app
Prerequisites
- PC or Mac
- Web browser
- Editor for JSON documents (not strictly necessary but very, very handy)
- Either a locally installed app like VisualStudio Code, Notepad++, Sublime etc. (recommended)
- Or an online JSON editor such as jsoneditoronline.org
- Audio tracks for your guided tour
- iOS device with GPS Audio Player
Download the template files
To start off the route creation, let’s first download the sample data here.
Getting to know the directory stucture
After unpacking the downloading the sample file you will find a directory called gpsa_sample_content in your downloads folder. You may want to move this directory to a different place, where you can find it easily and also rename it to your purpose e. g. My Audio Automation.

Following this, let’s take a look at the folder, which we will call content-root from now on. There are several objects in the content-root directory:
- The subdirectories
DE_sampleandEN_samplecontaining MP3 files. We recommend creating a subdirectory for every route. - The documents
DE_sample_route,EN_sample_routewith the file suffix.json. These documents link the audio tracks from the directories above with geographic coordinates for automatic playback. Every route needs its own JSON-Document. - A document
campaignwith the file suffix.json. This documents lists all of the announcements that can be played manually. - A
READMEfile containing this tutorial in English.
Route creation
Let’s build a new route in 2 steps:
- Put your audio files in place
- Create and customize a JSON-document for your route
Audio files
GPS Audio Player can only access files that are in the content-root directory, which is why you will need to copy the audio tracks to this directory. Start by creating a subdirectory for every route that you want to automate.
💡 Of course you could just drop all audio tracks in the content-root directory but it is recommended to have a subdirectory for every route.
💡 It is recommended to also number the audio tracks, to make them always appear in the correct order.
Route documents
Now that we have all our audio tracks in place we can create the JSON files for the tours.
Creating the documents
Recreating the data structure would be very cumbersome which is why we duplicate the existing file EN_sample_route.json and rename it according to our needs (like EN_new_route.json).
Before we start adding coordinates, let’s first enter the correct details for our new tour.

Every route has 4 fields, being:
name: A human readable label of the pointfenceRadiusMeters: The default radius of the circle that defines the geo-fence around all the route pointscode: An optional country code to display a flag representing the audio’s languagepositions: This part will be dealt with later
💡 The appropriate fenceRadiusMeters depends on your way of transport and route. For cars, coaches, ships and boats a fence radius of 50 to 80 (meters) is reasonable. Biking and pedestrian routes require smaller radiuses between 10 and 25 (meters).
💡 See Wikipedia for a list of all available country codes.
Adding route points

To define the points on your route you need to define positions in the array with the same name. Every position has three mandatory fields, being:
name: A human readable label of the pointcoordinates: The exact location of the route point[latitude, longitude]file: The path to the audio file relative to the content-root
It is also possible to define custom radiusses for single route points, but use this feature carefully.
💡 The easiest way to find the correct coordinates is to drop a pin at the desired location in Google Maps and copy the lat and lon values (see image below).
Announcements

Let’s further setup some announcements in the campaign.json document. Announcements are not related to a geographic coordinate and can be played manually on demand. Do not change the file name nor the attribute name in this file.
Every announcement has two mandatory fields:
name: A human readable label of the pointfile: The path to the audio file relative to the content-root
Copying the files to your device
It does not matter how exactly you copy the data to a specific iOS device. Nevertheless, we kindly provide two easy ways for you to deploy tour routes.
Direct copy (via USB wire)
In order to deploy your tour to the iOS device we recommend always replacing all contents of the GPS Audio Player data on the iOS device. After deleting all of the data in the GPS Audio Player folder simply drag and drop the contents of your content root into the GPS Audio Player folder on the iOS device and wait for the copying process to finish.
Copy via a cloud provider
You may prefer the iOS device and your computer not having a wired connection for the file transfer. In this case, you can easily transfer your routes via the cloud.
💡 In the figure Apple iCloud is used, but Dropbox, Google Drive etc. work exactly the same.
First, you need to upload the content-root directory to your cloud. To deploy your route to an iOS device, we recommend always replacing all GPS Audio Player data content on the iOS device. After deleting all the data in the GPS Audio Player folder, simply copy the contents of your content-root directory in the cloud to the GPS Audio Player folder on the iOS device (see figure).
Common issues and pitfalls
💡 When you open the app and your route is not displayed in the routes list, that is probably caused by a malformed JSON, with either invalid syntax (e. g. a missing comma) or missing fields. If audio files are missing, you will be prompted an error message after selecting the route in the route list.

Direct copy (via USB wire)