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

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 11
  • Comments: 23 (6 by maintainers)

Most upvoted comments

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.

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 😉