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>'
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>'