Follow us on GitHub

com.google.gwt.maps.client.services
Class DirectionsResult

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.DirectionsResult

public class DirectionsResult
extends JavaScriptObject

The directions response retrieved from the directions server. You can render these using a DirectionsRenderer or parse this object and render it yourself. You must display the warnings and copyrights as noted in the Maps API terms of service. Note that though this result is "JSON-like," it is not strictly JSON, as it indirectly includes LatLng objects.

See DirectionsResult API Doc


Constructor Summary
protected DirectionsResult()
          use newInstance();
 
Method Summary
 JsArray<DirectionsRoute> getRoutes()
          An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed.
static DirectionsResult newInstance()
          An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed.
 void setRoutes(JsArray<DirectionsRoute> routes)
          An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectionsResult

protected DirectionsResult()
use newInstance();

Method Detail

newInstance

public static final DirectionsResult newInstance()
An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed. There will only be one route unless the DirectionsRequest was made with provideRouteAlternatives set to true. (This property was formerly known as "trips".)


setRoutes

public final void setRoutes(JsArray<DirectionsRoute> routes)
An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed. There will only be one route unless the DirectionsRequest was made with provideRouteAlternatives set to true. (This property was formerly known as "trips".)

Parameters:
routes -

getRoutes

public final JsArray<DirectionsRoute> getRoutes()
An array of DirectionsRoutes, each of which contains information about the legs and steps of which it is composed. There will only be one route unless the DirectionsRequest was made with provideRouteAlternatives set to true. (This property was formerly known as "trips".)



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.