From ed3f6118204e6c52a9338cad48b05d675e32cb8e Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 3 Dec 2015 16:52:13 +1100 Subject: [PATCH] Splitting the full result from just the routes. --- .../google/maps/FullDirectionsApiRequest.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/java/com/google/maps/FullDirectionsApiRequest.java diff --git a/src/main/java/com/google/maps/FullDirectionsApiRequest.java b/src/main/java/com/google/maps/FullDirectionsApiRequest.java new file mode 100644 index 000000000..a35e3e69c --- /dev/null +++ b/src/main/java/com/google/maps/FullDirectionsApiRequest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2015 Google Inc. All rights reserved. + * + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this + * file except in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF + * ANY KIND, either express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ +package com.google.maps; + +import com.google.maps.model.DirectionsResult; + +/** + * Request for the Directions API. + * + *

This request generates a full result with the routes and geocoded waypoints.

+ */ +public class FullDirectionsApiRequest + extends DirectionsApiRequestBase { + + FullDirectionsApiRequest(GeoApiContext context) { + super(context, DirectionsApi.API_CONFIG, DirectionsApi.FullResponse.class); + } +}