GithubHelp home page GithubHelp logo

hiking-app's Introduction

A simple text-based tracking app for iOS to bring on hikes and bikes that gives you all the info you need and nothing more.

sample

Features

  • your current lat, lon
  • distance along gpx track
  • off trail warning and visual guidance back to trail
  • current elevation
  • distance to goal
  • elevation gain and loss to goal
  • sunrise and sunet times
  • switch between metric and imperial units
  • change goal distance

Usage

You need to prepare you gpx data into a specific format for this app and then replace the contents bruce_all.txt with your precomputed data. The file format is as follows:

tracks = [[<LAT>, <LON>, <ELEVATION>, <DISTANCE_FROM_START>], [...], ...];
poi = [[<LAT>, <LON>, <ELEVATION>, <DISTANCE_FROM_START>, <HEADER_TEXT>, <MAIN_TEXT>, <MORE_TEXT>], [...], ...];

So essentially there are two 2-dimensional lists (tracks and poi) containing data which will be parsed and each list is separated by a ;

The type for the elements in these lists is as follows (extracted from the code):

var tracks: [[Double]] = [];
var poi: [(Double, Double, Double, Double, String, String, String)] = [];

Please refer to the bruce_all.txt file already present in the project for a real example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.