oracle.panama.spatial.traffic
Interface TrafficReporter


public interface TrafficReporter

Provide functions that return traffic report with different queries.


Field Summary
TypeField
static java.lang.String DAY
           
static java.lang.String EAST
           
static java.lang.String HOUR
           
static int KILOMETERS
           
static int MILES
           
static java.lang.String MINUTE
           
static java.lang.String MONTH
           
static java.lang.String NORTH
           
static double RADIUS
          default radius for location/address query
static java.lang.String SOUTH
           
static java.lang.String UNKNOWN
           
static java.lang.String WEST
           
static java.lang.String YEAR
           
 
Method Summary
TypeMethod
 TrafficCityManager getCityManager()
           
 TrafficReport getReportViaAddress(Location address, double radius, int unit)
          Return a report with the incidents information on a circle area.
 TrafficReport getReportViaCity(CityInfo city)
          Return a report with the incidents information all over the city.
 TrafficReport getReportViaLocation(Point location, double radius, int unit)
          Return a report with the incidents information on the requested circle area.
 TrafficReport getReportViaLocation(Point location, double radius, int unit, CityInfo city)
          Return a report with the incidents information on a requested circle area.
 TrafficReport getReportViaRoute(RouteInfo route, CityInfo city)
          Return a report with the incidents information only on the requested route.
 TrafficReport getReportViaRoute(RouteInfo route, java.lang.String direction, CityInfo city)
          Return a report with the incidents information only on the requested direction of the route.
 java.lang.String xmlTraffic(org.w3c.dom.Document xmlRequest)
           
 

Field Detail

NORTH

public static final java.lang.String NORTH

SOUTH

public static final java.lang.String SOUTH

EAST

public static final java.lang.String EAST

WEST

public static final java.lang.String WEST

UNKNOWN

public static final java.lang.String UNKNOWN

MILES

public static final int MILES

KILOMETERS

public static final int KILOMETERS

RADIUS

public static final double RADIUS
default radius for location/address query

MINUTE

public static final java.lang.String MINUTE

HOUR

public static final java.lang.String HOUR

DAY

public static final java.lang.String DAY

MONTH

public static final java.lang.String MONTH

YEAR

public static final java.lang.String YEAR
Method Detail

getCityManager

public TrafficCityManager getCityManager()
Returns:
the instance of TrafficCityManager which is used for querying cities and routes information.
See Also:
TrafficCityManager

getReportViaCity

public TrafficReport getReportViaCity(CityInfo city)
                               throws LBSException
Return a report with the incidents information all over the city.
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

getReportViaRoute

public TrafficReport getReportViaRoute(RouteInfo route,
                                       CityInfo city)
                                throws LBSException
Return a report with the incidents information only on the requested route.
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

getReportViaRoute

public TrafficReport getReportViaRoute(RouteInfo route,
                                       java.lang.String direction,
                                       CityInfo city)
                                throws LBSException
Return a report with the incidents information only on the requested direction of the route.
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

getReportViaLocation

public TrafficReport getReportViaLocation(Point location,
                                          double radius,
                                          int unit,
                                          CityInfo city)
                                   throws LBSException
Return a report with the incidents information on a requested circle area.
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

getReportViaLocation

public TrafficReport getReportViaLocation(Point location,
                                          double radius,
                                          int unit)
                                   throws LBSException
Return a report with the incidents information on the requested circle area.
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

getReportViaAddress

public TrafficReport getReportViaAddress(Location address,
                                         double radius,
                                         int unit)
                                  throws LBSException
Return a report with the incidents information on a circle area.
Parameters:
address - an Location instance including the address information
Returns:
the instance of TrafficReport
Throws:
LBSException -  
See Also:
TrafficReport

xmlTraffic

public java.lang.String xmlTraffic(org.w3c.dom.Document xmlRequest)
                            throws LBSException