Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.spatial
Class RankingByDrivingTime

java.lang.Object
  |
  +--oracle.panama.spatial.Ranking
        |
        +--oracle.panama.spatial.RankingByDrivingTime

public class RankingByDrivingTime
extends Ranking

Constructor Summary
RankingByDrivingTime(Point[] locations)
           
RankingByDrivingTime(Point[] locations, double[] times, double[] dist)
           

 

Method Summary
 double[] getDistances()
          This returns the driving distances for the ranked points (same sequence as points in point array).
 double[] getTimes()
          This returns the driving times for the ranked points (same sequence as points in point array).

 

Methods inherited from class oracle.panama.spatial.Ranking
getRankedPoints, getRankingProvider, setRankingProvider

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RankingByDrivingTime

public RankingByDrivingTime(Point[] locations)

RankingByDrivingTime

public RankingByDrivingTime(Point[] locations,
                            double[] times,
                            double[] dist)
Method Detail

getDistances

public double[] getDistances()
This returns the driving distances for the ranked points (same sequence as points in point array).
Returns:
An array of doubles representing the driving distances in kilometers. If this information is not available, then null will be returned.

getTimes

public double[] getTimes()
This returns the driving times for the ranked points (same sequence as points in point array).
Returns:
An array of doubles representing the driving times in minutes. If this information is not available, then null will be returned.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.