question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native-maps-directions Error on GMAPS route request, Unknown error

See original GitHub issue
let destination = { latitude: stand.latitude, longitude: stand.longitude };
let origin = { latitude: location.coords.latitude, longitude: location.coords.latitude };
return(
<MapView
              style={{ flex: 1 }}
              initialRegion={{
                latitude: location.coords.latitude,
                longitude: location.coords.longitude,
                latitudeDelta: 0.0922,
                longitudeDelta: 0.0421,
              }}
            >
              <MapViewDirections
                origin={origin}
                destination={destination}
                apikey={GOOGLE_MAPS_APIKEY}
              />
            </MapView>);

Above is a snippet of my code, I am getting this error, react-native-maps-directions Error on GMAPS route request, Unknown error

I am running my application on expo on an ios device, is there I am doing wrong?

I have checked my google keys, they are active and well

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chantheacommented, May 22, 2020

Well, i have the same experience. I noticed that i only have this problem when i enabled debug-mode, when i disabled it, it worked like charms.

1reaction
bramuscommented, Aug 29, 2019

My apps that have react-native-maps-directions integrated still work fine.

As mentioned above I think there’s a problem with the values that you’re setting for the origin/destination props. Please check those. Try with a value that’s known to work first (see example).

And oh, please, don’t “bro” me 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-maps-directions Error on GMAPS route ...
Sometimes this error occurs when there is no ground route between coordinates. Also can you access google developer console account that ...
Read more >
react-native-maps-directions
react-native-maps-directions Error on GMAPS route request, ZERO_RESULTS - node_modules\react-native\Libraries\YellowBox\YellowBox.js:71:8 in console.warn ...
Read more >
Error Messages in Maps Static API
This guide explains each error message, and provides further instructions for resolving errors. Invalid requests. In the case of an invalid request, the...
Read more >
react-native-maps-directions
Start using react-native-maps-directions in your project by ... routing to; apikey : Your Google Maps Directions API Key (request one here; ...
Read more >
bing maps directions
After you click on "Plan Route" you will get driving directions and duration. ... Solutions to Fix Google Maps Not Working error: Solution...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found