About Geo Location

I want to add Geo Location and Route Finder in my Ionic Mobile Application. I face errors in geo location part.Please send me a html,js,css code for adding geo location and route finder. I am using html and js for desiginng. I am using Adobe dreamviewer for editing my application.