title: Draw Route between two points using Google Directions in Google Map
body: <p>I am trying to Draw Route between two points using Google Directions in Google Map Android API using  <a href="https://www.androidtutorialpoint.com/intermediate/google-maps-draw-path-two-points-using-google-directions-google-map-android-api-v2/" rel="nofollow noreferrer"> Draw Route between two points using Google Directions</a></p>
  
  <p>everything is fine when I run the code I find the Map and I can make two markers. The problem here is in no route and when I look at Android Studio Logcat i find this error:</p>
  
  <blockquote>
    <p>"error_message" : "Keyless access to Google Maps Platform is
    deprecated. Please use an API key with all your API calls to avoid
    service interruption</p>
  </blockquote>
  
  <p>I looked it up and I found that Since June 11th 2018, Google began enforcing the use of API keys so I changed my URL from</p>
  
  <blockquote>
    <p>String url = "<a href="https://maps.googleapis.com/maps/api/directions/" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/directions/</a>"+output+"?"+parameters;</p>
  </blockquote>
  
  <p>to </p>
  
  <blockquote>
    <p>String url = "<a href="https://maps.googleapis.com/maps/api/directions/" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/directions/</a>"+output+"?"+parameters + "&amp;key=" + MY_API_KEY</p>
  </blockquote>
  
  <p>MY_API_KEY as per my project Credentials.</p>
  
  <p>But the error is still appears. I also find that the billing associated with your projects needs to be in google map although the key is free. You can use it with any of your applications that call the Maps SDK for Android but it still asking for billing so I must have an online credit card and it's not available for me right now.</p>
  
  <p>So any suggestion about how to solve this problem?</p>
  
  <p>Is there any other API can I use than Google Maps API?</p>