I want to get a list of directions between two locations. Google Directions API says that the results are placed in routes array.
I tried directions using API and got only a single direction, but when searched in Google Maps with the search text as “Hall Bazar, Amritsar to Majitha Road, Amritsar”, I got three route suggestions.
Please correct me if I misunderstood Google Directions API.
Check the documentation, you need to ask for alternatives
&alternatives=true