bramus / react-native-maps-directions

Directions Component for `react-native-maps`
MIT License
1.25k stars 197 forks source link

Added types in 'onReady' n put route instructions #144

Closed Matan18 closed 4 years ago

Matan18 commented 4 years ago

I added types to 'onReady' callback named as 'MapDirectionsResponse' to turn easy to findout what information is returned. Also, I created de type 'MapDirectionsLegs' which has information of the route instructions in 'MapDirectionsResponse', such as htmlInstructions that looks like 'Turn Right on 45th Street<\b>'