Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No results returned for certain origin/destination pairs #3

Open
andrashann opened this issue May 23, 2020 · 1 comment
Open

No results returned for certain origin/destination pairs #3

andrashann opened this issue May 23, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@andrashann
Copy link
Owner

The Directions API does not return results for some origin/destination pairs, e.g. Beijing–Shanghai or Kyoto–Tokyo. For example, the query https://maps.googleapis.com/maps/api/directions/json?origin=Tokyo&destination=Kyoto&mode=transit&language=en&key=[API_KEY]&departure_time=1590483732 returns this:

{
   "available_travel_modes" : [ "DRIVING", "WALKING" ],
   "geocoded_waypoints" : [
      {
         "geocoder_status" : "OK",
         "place_id" : "ChIJXSModoWLGGARILWiCfeu2M0",
         "types" : [ "colloquial_area", "locality", "political" ]
      },
      {
         "geocoder_status" : "OK",
         "place_id" : "ChIJ8cM8zdaoAWARPR27azYdlsA",
         "types" : [ "locality", "political" ]
      }
   ],
   "routes" : [],
   "status" : "ZERO_RESULTS"
}

However, the Google Maps web interface does give results.

I have not been able to figure out the reason for this.

@andrashann andrashann added bug Something isn't working help wanted Extra attention is needed labels May 23, 2020
@andrashann
Copy link
Owner Author

Note: this is partially fixed in 79345f5 for cases when there are some valid results and some empty ones (e.g. London–Barnstaple). However, the examples given above still return empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant