public class DirectionsApi
extends java.lang.Object
See the Directions API Developer's Guide for more information.
| Modifier and Type | Class | Description | 
|---|---|---|
static class  | 
DirectionsApi.RouteRestriction | 
 Directions may be calculated that adhere to certain restrictions. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
static DirectionsApiRequest | 
getDirections(GeoApiContext context,
             java.lang.String origin,
             java.lang.String destination) | 
 Creates a new DirectionsApiRequest between the given origin and destination, using the defaults
 for all other options. 
 | 
static DirectionsApiRequest | 
newRequest(GeoApiContext context) | 
 Creates a new DirectionsApiRequest using the given context, with all attributes at their
 default values. 
 | 
public static DirectionsApiRequest newRequest(GeoApiContext context)
context - Context that the DirectionsApiRequest will be executed againstpublic static DirectionsApiRequest getDirections(GeoApiContext context, java.lang.String origin, java.lang.String destination)
context - Context that the DirectionsApiRequest will be executed againstorigin - Origin address as textdestination - Destination address as text