Project

General

Profile

Research #4948

Assessment of Google Maps' capability to handle start, end, and waypoint data from a driver-side application.

Added by Shalu T S 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Urgent
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Milestone:
Sprint 29 Tukxi Ride 2025 Apr 02 to June 27
Branch name:

Description

Assessment of Google Maps' capability to handle start, end, and waypoint data from a driver-side application.

#1

Updated by Sreedevi K S 9 months ago

Passing way points to google map

try {
String origin = "your_origin_lat,your_origin_lon"; // Optional if user's current location is used
String destination = dest_lat + "," + dest_lon;

// Add your waypoints here (comma-separated if multiple)
String waypoints = "10.0124456,76.3669415|10.0108987,76.3677397|10.0107678,76.3660515|10.017846,76.3503992|10.0150655,76.3360004|10.0152046,76.33560679999999";

// String waypoints = "10.026630, 76.337725|10.033785, 76.327434";

String url = "https://www.google.com/maps/dir/?api=1" +
"&destination=" + destination +
"&travelmode=driving" +
"&waypoints=" + waypoints;

(new StartActProcess(getActContext())).openURL(url, "com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
} catch (Exception e) {
Toast.makeText(getActContext(), generalFunc.retrieveLangLBl("Please install Google Maps in your device.", "LBL_INSTALL_GOOGLE_MAPS"), Toast.LENGTH_LONG).show();
}

Also available in: Atom PDF