title: Getting the nearest street/road coordinates in android
body: <p>In javascript, using <code>Google maps api</code>s we specify options such as <code>google.maps.TravelMode.DRIVING</code>. Do we have any equivalent for <code>TravelMode</code> in android? I couldn't see anything in <code>android.location.LocationManager</code> or <code>android.location.Criteria</code>
  I've thought of following options:</p>
  
  <ol>
  <li><p>Using some <code>TravelMode</code> alternative, get coordinates <em>approximated</em> to nearest street/road. </p></li>
  <li><p>Alternatively, (<em>Not preferred as it will be slow</em>) get the coordinates normally and then probably send it to some google api(This will be pretty slow as there are many points) and get the coordinates corrected to the nearest street coordinates. Or in case if there exists some (google-maps) javascript framework, it may be used to get corresponding street coordinates.</p></li>
  </ol>
  
  <p><strong>Edit1:</strong></p>
  
  <p>I've also looked into <a href="https://stackoverflow.com/questions/8672441/google-maps-api-street-coordinates">this</a>. and hence into <code>android.location.Geocoder</code>. The <code>getFromLocation</code> in this class seems to do most of the work. However, I'm afraid, of an additional delay while acquiring the nearest address.</p>