.The hardest part is to create a gpx file. Xcode requires gpx files to be in a specific format.
So first create a gpx format by one of the available online map services. I used Graphhopper with satisfactory results (https://graphhopper.com/maps/).
Next, translate the resulting file to a format that Xcode will understand using the tool gpsbabel (on the Mac gpsbabel can be easily installed using homebrew).
gpsbabel -i gpx -f input.gpx -x transform,wpt=trk -o gpx -F output.gpx
And that's it.
No comments:
Post a Comment