react-native-maps-directions Error on GMAPS route request, Unknown error
See original GitHub issuelet 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:
- Created 4 years ago
- Reactions:10
- Comments:23 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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 😉