Android Google Maps, how to create navigation between 2 points <p>I want to create a Map activity (FragmentActivity) that displays a Google Map and shows navigation between 2 points.</p> <p>I have one made that shows one location but I've no idea on how to create navigation to another point, every link I saw gives their web api as the solution (<a href="https://maps.google.com/maps?saddr=X,Y&amp;daddr=X,Y" rel="nofollow">https://maps.google.com/maps?saddr=X,Y&amp;daddr=X,Y</a>)</p> <p>and I want to do exactly what it does just programmatically through the activity and not just link into their webpage</p> <p>my code so far:</p> <pre><code>try{ bndl = getIntent().getExtras(); COORDS = new LatLng(bndl.getDouble("lat"), bndl.getDouble("long")); if (map == null) { map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); if (map != null) { map.setMapType(GoogleMap.MAP_TYPE_HYBRID); map.addMarker(new MarkerOptions().position(COORDS).title("Your parking spot!")); CameraPosition cameraPosition = new CameraPosition.Builder() .target(COORDS) .zoom(20) .bearing(90) .tilt(0) .build(); map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); } } } catch (Exception e){ Log.v("except", ""+e); } </code></pre> <p>now this only shows the one location (as it should do) but how to create another marker or something to navitage to? Is there a way to do this or do I HAVE to use their web api?</p>