public class DirectionsApi
extends java.lang.Object
The Google Directions API is a service that calculates directions between locations using an HTTP request. You can search for directions for several modes of transportation, include transit, driving, walking or cycling. Directions may specify origins, destinations and waypoints either as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia") or as latitude/longitude coordinates. The Directions API can return multi-part directions using a series of waypoints.
See documentation.
Modifier and Type | Class and Description |
---|---|
static class |
DirectionsApi.RouteRestriction
Directions may be calculated that adhere to certain restrictions.
|
Modifier and Type | Method and Description |
---|---|
static DirectionsApiRequest |
getDirections(GeoApiContext context,
java.lang.String origin,
java.lang.String destination) |
static DirectionsApiRequest |
newRequest(GeoApiContext context) |
public static DirectionsApiRequest newRequest(GeoApiContext context)
public static DirectionsApiRequest getDirections(GeoApiContext context, java.lang.String origin, java.lang.String destination)