Oracle Application Server Wireless Java API Reference
B10400-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.

Author:
Yingmei Sun

Field Summary
static java.lang.String federal
           
static java.lang.String interstate
           
static java.lang.String local
           
static java.lang.String statewise
           

 

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

interstate

public static final java.lang.String interstate
See Also:
Constant Field Values

statewise

public static final java.lang.String statewise
See Also:
Constant Field Values

federal

public static final java.lang.String federal
See Also:
Constant Field Values

local

public static final java.lang.String local
See Also:
Constant Field Values
Method Detail

getName

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

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.

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.

getParentCity

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

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.