Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.traffic
Interface TrafficRoute


public interface TrafficRoute

Represents a route in a City including both directions. The TrafficRoute instance is service provider dependent.


Field Summary
static java.lang.String federal
          Constant used to indicate a federal road
static java.lang.String interstate
          Constant used to indicate an instestate highway
static java.lang.String local
          Constant used to indicate a local road
static java.lang.String statewise
          Constant used to indicate a state road

 

Method Summary
 Point[] getGeometryPoints()
          Return the geometry of the route.
 java.lang.String getName()
          Return the name of the routes.
 City getParentCity()
          Return the city where the route is located .
 java.lang.String getType()
          Return the type of the routes.

 

Field Detail

federal

public static final java.lang.String federal
Constant used to indicate a federal road
See Also:
Constant Field Values

interstate

public static final java.lang.String interstate
Constant used to indicate an instestate highway
See Also:
Constant Field Values

local

public static final java.lang.String local
Constant used to indicate a local road
See Also:
Constant Field Values

statewise

public static final java.lang.String statewise
Constant used to indicate a state road
See Also:
Constant Field Values

Method Detail

getGeometryPoints

public Point[] getGeometryPoints()
Return the geometry of the route.
Returns:
an array of Point. Return null if the service provider does not provide geometry.

getName

public java.lang.String getName()
Return the name of the routes. Currently the name is defined by the service provider.

getParentCity

public City getParentCity()
Return the city where the route is located .

getType

public java.lang.String getType()
Return the type of the routes. The type values are "I" - interstate, "SR" - in state, "US" - federal and "LOCAL". Currently the type is ignored. null is retured.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.