Using MapViewDirections, I get a polyline as driving directions and a length of how far it is.
But what if I want to go there using another route? I dont get any grey polylines with alternative directions.
How to get those alternative route suggestions you know from Google maps etc?
<MapView
ref={mapRef}
style={styles.map}
initialRegion={middleOfDenmark}
>
{origin && <Marker coordinate={origin} />}
{destination && <Marker coordinate={destination} />}
{origin && destination && (
<MapViewDirections
origin={origin}
destination={destination}
apikey={Platform.OS === "ios" ? mapKitAPIKey : googleAPIKey}
strokeColor="#112D4E"
strokeWidth={4}
onReady={calcDistanceOnReady}
/>
)}
</MapView>```