title: Google Map Direction API Return Zero Results Swift
body: <p>My App using Google Maps <strong>Direction</strong> API to draw route between any two positions (origin - direction positions)user pin it. </p>
  
  <p>I used the API like this way:</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/directions/json?origin=(fromLat),(fromLng)&amp;destination=(toLat),(toLng)&amp;mode=(travelMode)&amp;departure_time=now&amp;alternatives=true&amp;language=(lang" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=(fromLat),(fromLng)&amp;destination=(toLat),(toLng)&amp;mode=(travelMode)&amp;departure_time=now&amp;alternatives=true&amp;language=(lang</a>)</p>
  
  <p>The problem is sometimes the response return Zero Results, like this : </p>
  
  <pre><code>{
    "geocoded_waypoints": [
      {},
      {}
    ],
  
    "routes": [],
  
    "status": "ZERO_RESULTS"
  }
  </code></pre>
  
  <p>I searched a lot but no useful results.</p>
  
  <p>Anyone faced this problem?</p>
  
  <p>Could this problem be because I used the free API? </p>
  
  <p>I will be thankful for any help.</p>
  
  <p>Thanks. </p>