title: how to know google map could not calculate directions from place a to place b in android
body: <p>i want to show <strong>direction from place A to place B</strong>, by using <strong>google map application</strong> and <strong>intent</strong></p>
  
  <ol>
  <li>at first i find <strong>latitude</strong> and <strong>longitude</strong> of both places</li>
  <li><p>then i use below URL to show the direction between 2 places  </p>
  
  <p>"<a href="http://maps.google.com/maps?saddr=" rel="nofollow noreferrer">http://maps.google.com/maps?saddr=</a>" + lat1 + "," + lng1 + "&amp;daddr=" + lat2 + "," + lng2</p></li>
  </ol>
  
  <p>it;s OK and all things goes right <strong>but</strong> s.times google map <strong>can't</strong> find direction and it shows below error  </p>
  
  <blockquote>
    <p>Sorry, we could not calculate directions from place A to place B  </p>
  </blockquote>
  
  <p>i read about this error and understood that </p>
  
  <blockquote>
    <p>the directions is not supported in every country of the world  </p>
  </blockquote>
  
  <p>but , <strong>here is my question</strong> that how can i get this error to show users, my own sentence instead of opening google map application with intent and then google map shows this to users  </p>
  
  <p><strong>UPDATE :</strong> here is the URL , u can test it<br>
  <a href="https://www.google.com/maps/dir/33.5132762,51.9130553/30.3548893,56.002705/@31.9237095,51.7145804,7z/data=!3m1!4b1" rel="nofollow noreferrer">it will show "Sorry, we could not calculate directions"</a></p>