title: How do I open the device's default navigation app through a URL?
body: <p>Good Morning,  everyone</p>
  <p>I'm dealing with a problem in an application developed using Cordova, for android. In a certain page of the application (everything is constructed using pure HTML and Javascript), I need to open a route when the user clicks a link. After many hours of research on the internet, I could find some options, but none of them dealed with it.</p>
  <p>Here I give you what I found and tried so far. Please assume that the coordinates represent a viable location for the route..</p>
  <hr />
  <p>Using the <code>geo:</code> schema</p>
  <p>Example: <code>&lt;a href=&quot;geo:45.6,23.4&quot;&gt;Route&lt;/a&gt;</code></p>
  <p>Problem: This was the one that nearly solve it. The problem here is that <code>geo:</code> opens the map application showing the position given in the coordinates. All fine until there, but there is no option using this schema to open with a route, as I could figure out reading <a href="https://www.rfc-editor.org/rfc/rfc5870" rel="nofollow noreferrer">the specification</a>.</p>
  <hr />
  <p>Using <code>maps.google.com</code> in the link domain. Example: <code>&lt;a href=&quot;http://maps.google.com/maps?saddr=20.344,34.34&amp;daddr=20.5666,45.345&quot;&gt;&lt;/a&gt;</code></p>
  <p>When trying this using the device's browser, I could open the navigation app. But using it inside a hybrid application as the on I'm building just redirects it to Google Maps site, using it's mobile version. But it happens inside my <strong>application</strong>, what now seems logical to me but really freaked me out, since it's not possible to control that. (Unfortunally an iframe is not a viable option because of the standarts that we addopt in the project.
  Using a <code>target=blank</code> on that link didn't changed nothing.</p>
  <hr />
  <p>My last try was using the <code>google.navigation</code> schema.</p>
  <p>Example: <code>&lt;a href=&quot;google.navigation:q=45.6,32.8&quot; target=&quot;_blank&quot;&gt;</code>
  Again, if I test it in a common device browser everything works just fine but when I try it on my app it crashes, saying that &quot;google.navitation is not a supported protocol.&quot;</p>
  <hr />
  <p><em>UPDATE</em></p>
  <hr />
  <p>I've also tried the option present <a href="http://coronalabs.com/blog/2012/12/18/reintroducing-google-maps/" rel="nofollow noreferrer">here</a>, with the following format:</p>
  <p><code>&lt;a href=&quot;comgooglemaps://?saddr=Google+Inc,+8th+Avenue,+New+York,+NY&amp;daddr=John+F.+Kennedy+International+Airport,+Van+Wyck+Expressway,+Jamaica,+New+York&amp;directionsmode=transit&quot;&gt;Route to here&lt;/a&gt;</code></p>
  <p>The application also crashes and I'm alerted that the <code>comgooglemaps://</code> schema is not supported.</p>
  <hr />
  <p>I could findthese 4 options, since everyone that had similar needs could find a solution using them. Is there any other way to do that?  I really appretiate any help from you, if possible, with some documentation/specification/whatever link about that.</p>
  <p>Thank you for your attention.</p>