public class DistanceMatrixApi
extends java.lang.Object
This service does not return detailed route information. Route information can be obtained by
passing the desired single origin and destination to the Directions API, using DirectionsApi.
Note: You can display Distance Matrix API results on a Google Map, or without a map. If you want to display Distance Matrix API results on a map, then these results must be displayed on a Google Map. It is prohibited to use Distance Matrix API data on a map that is not a Google map.
| Modifier and Type | Class and Description |
|---|---|
static class |
DistanceMatrixApi.Response |
| Modifier and Type | Method and Description |
|---|---|
static DistanceMatrixApiRequest |
getDistanceMatrix(GeoApiContext context,
java.lang.String[] origins,
java.lang.String[] destinations) |
static DistanceMatrixApiRequest |
newRequest(GeoApiContext context) |
public static DistanceMatrixApiRequest newRequest(GeoApiContext context)
public static DistanceMatrixApiRequest getDistanceMatrix(GeoApiContext context, java.lang.String[] origins, java.lang.String[] destinations)