I’m trying to call a directions API to calculate mileage but I’m having trouble formatting the waypoints. I feel like I’ve exhausted every permutation. The google documentation states that waypoints should be formatted as follows:
It should be an array with multiple objects. Right now I have it getting one of the waypoints but it’s not picking up the other waypoints. Here are some screenshots of what I have. I’m not sure how to format it properly to display a route to all the addresses listed below.
Thanks to whoever reads this and wants to help me out !!