I am using google-service-api(java) to get the directions, But i am using lat long instead of location names this will work for origin and destination but for waypoints its asking array of string(location names). is there any way to use the lat long instead of location names in waypoints?
i am creating request like this,
DirectionsApi.newRequest(context).mode(TravelMode.DRIVING).origin(start).destination(end).waypoints(//String array).await();
We can create the google latLng object by providing the lat long then we have to change it to string by using toString method after that we can pass that string directly to waypoints() method.it'll work.we don't have to reverse geocode it.