Hi,
i am an Android developer and i have a live application on the google Play 
store which is a drone management application and it has a feature for 
route optimisation , but i am facing some limitation problems for direction 
API .

I am using this API for direction :

https://maps.googleapis.com/maps/api/directions/json?origin=47.196602,8.4531856&destination=47.2587282,8.4302902&waypoints=|47.196602,8.4531856|47.1989858,8.4562862|47.1970905,8.4578204|47.198512,8.4566295|47.1981038,8.4550416|47.1979361,8.4569407|47.1998435,8.4512115|47.1988109,8.456769|47.1994888,8.4514368|47.2000793,8.449173|47.1995763,8.4500206|47.199846,8.4500098|47.2178256,8.3646152|47.1972509,8.4506321|47.1992483,8.4572303|47.2302934,8.4850502|47.1959605,8.4521127|47.2407834,8.4105492|47.2107347,8.3192673|47.1960917,8.457917|47.2392716,8.4922869|47.2107347,8.3192673|47.2392716,8.4922869|47.1960917,8.457917|47.196602,8.4531856&key=xxxxxxxxxxxxxxxxxxxxx&mode=DRIVING

the response i am getting is plotted on the map and create route , but when 
the waypoints exceed 23 i am getting this response:

{
   "error_message" : "Too many waypoints in the request (27). The maximum 
allowed waypoints for this request is 23, plus the origin, and destination.",
   "routes" : [],
   "status" : "MAX_WAYPOINTS_EXCEEDED"
}


Can anyone please help me how can i achieve more than 23 waypoints on the APi, 
as i have paid for the API and don't want to invest on any other graph api for 
route feature.


Note: I am using start time, end time, estimate time, time elapsed between each 
waypoint point , distance taking between each waypoint step, and reordering 
waypoints. 


I have tried to break waypoints but source and destination can not be separated 
and identified  .  

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/51b8dcee-a030-428b-9527-670402cc087c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to