com.nutiteq.components
Class Route

java.lang.Object
  extended by com.nutiteq.components.Route

public class Route
extends java.lang.Object

Data object containing route information from directions service.


Constructor Summary
Route(RouteSummary summary, Line routeLine, RouteInstruction[] instructions)
          Route from directions service
 
Method Summary
 RouteInstruction[] getInstructions()
          Get instructios for this route
 Line getRouteLine()
          Get line for this route
 Place[] getRoutePointMarkers(Image[] routeImages)
          Get route markers, that can be shown on map.
 RouteSummary getRouteSummary()
          Get route summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Route

public Route(RouteSummary summary,
             Line routeLine,
             RouteInstruction[] instructions)
Route from directions service

Parameters:
summary - summary of the route
routeLine - line containing route points
instructions - route instructions
Method Detail

getRouteSummary

public RouteSummary getRouteSummary()
Get route summary

Returns:
summary of route

getRouteLine

public Line getRouteLine()
Get line for this route

Returns:
route lines

getInstructions

public RouteInstruction[] getInstructions()
Get instructios for this route

Returns:
instruction points

getRoutePointMarkers

public Place[] getRoutePointMarkers(Image[] routeImages)
Get route markers, that can be shown on map. Images order is defined in DirectionsService

Parameters:
routeImages - images to be used in direction instructions
Returns:
instructions that can be shown on map