Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String getUrl(LatLng origin, LatLng dest, String directionMode) {
- String str_origin = "origin=" + origin.latitude + "," + origin.longitude;
- String str_destination = "destination=" + dest.latitude + "," + dest.longitude;
- String mode = "mode=" + directionMode;
- String parameters = str_origin + "&" + str_destination + "&" + mode;
- String output = "json";
- String url = "https://maps.googleapis.com/maps/api/directions/" + output + "?" + parameters + "&key=" + "AIzaSyBbn1GtJKOrz0a4bwoqhhAOlBAlEqNSTEA";
- return url;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement