Saturday, August 27, 2016

A new way to navigate countryside backroads and trails

One of my hobbies is scenic countryside trips on my mountain bike. I usually plan the route manually on Swedish map service eniro.se which have quite detailed maps, including really small roads and trails. The problem is the navigation. Eniro have a navigation application but you have little control over the route and the application sometimes routes poorly in walk mode, so I developed an alternative, and it works as follows.

You define the route by drawing three point polylines indicating your path through junctions. This can be done in Eniro maps, the option can be found in the ruler menu in the lower right corner. The waypoints need to be pretty accurate for good performance so this step is best done on a desktop/laptop. Should look something like this.



When you are done save all the polylines in a GeoJSON file, also in the ruler menu. The route is now done.

Next install my Android application which can be found here. In the application load the route and set off. When you reach a marked junction the application will issue navigation cues, either as speech, or vibration patterns if the media volume is zero. Uploading the route file to Google drive is a good way to make it accessible from your phone.

An example route around the lake Immeln can be found here. To view it just drop the file in Eniro maps. This route contains straight ahead cues and should therefore only be used with speech navigation. Vibration navigation only tells you left or right, not the actual bearing change, and is therefore not suitable for straight ahead cues.

One thing to keep in mind when opening existing routes by dropping them into Eniro maps is that you can't edit them due to a bug in Eniro maps where it will only save polylines drawn in the current session. So if you open a route, add a few polylines and do "download all" only the new polylines will be stored, not the ones originating from the opened file.

Other map services can also be used, so long as they support drawing polylines and saving them in GeoJSON.

No comments:

Post a Comment