title: Draw route and elevation profile
body: <p>I am developing an app and I need to draw a path and his elevation profile. I have a .kml file with all the data I need, but i don't know how to draw the path and create the elevation profile.</p>
  <p>I don't want to have a internet connection on my phone in order to retrieve data from google, therefore I can't use the google map API to create the path and the elevation.</p>
  <p>I want something like that:</p>
  <p><img src="https://i.stack.imgur.com/TFRnh.jpg" alt="Route" /></p>
  <p>I have the kml file with all coordinates and with my phone gps I should be able to know where I am on the route.
  The elevation profile should be something like that:</p>
  <p><img src="https://i.stack.imgur.com/x76IA.png" alt="enter image description here" /></p>
  <p>I know I can do it with google api (draw an overlay over a mapview and create the elevation using elevation api), but I didn't want to need internet connection since I have all the path data I need in a kml file and gps on my phone.</p>
  <p>Can someone tell how it's possible to draw graphics like that on Android without Google API, and have any time the knowledge of my current position (or aprox. position) on the graphics ?</p>
  <p>Thank you for your time.</p>