|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.monarchy.guideme.routing.nutiteq.NutiteqRouting
public class NutiteqRouting
Implements a RoutingComponent for the nutiteq maps api. It uses Cloudmade asynchronous routing as routing service.
Field Summary |
---|
Fields inherited from interface de.monarchy.guideme.routing.RoutingComponent |
---|
ERROR_NO_ROUTE_FOUND, ERROR_SERVICE_DOWN, ERROR_UNKNOWN_DESTINATION, ERROR_UNKNOWN_START |
Constructor Summary | |
---|---|
NutiteqRouting()
|
Method Summary | |
---|---|
void |
calculateRoute(RoutingListener l,
GeoCoordinate from,
GeoCoordinate to)
Calls the routing service asynchronously to receive a route between two points. |
void |
calculateRoute(RoutingListener l,
GeoCoordinate from,
GeoCoordinate to,
GeoCoordinate... via)
Calls the routing service asynchronously to receive a route between two points. |
RoutePoint[] |
findRoute(GeoCoordinate from,
GeoCoordinate to)
Calls the routing service synchronously to receive a route between two points. |
RoutePoint[] |
findRoute(GeoCoordinate from,
GeoCoordinate to,
GeoCoordinate... via)
Calls the routing service synchronously to receive a route between two points. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NutiteqRouting()
Method Detail |
---|
public void calculateRoute(RoutingListener l, GeoCoordinate from, GeoCoordinate to) throws java.lang.UnsupportedOperationException
RoutingComponent
calculateRoute
in interface RoutingComponent
l
- the listener to be notifiedfrom
- starting point as GeoCoordinateto
- target as GeoCoordinate
java.lang.UnsupportedOperationException
- if a asynchronous call is not supportedpublic void calculateRoute(RoutingListener l, GeoCoordinate from, GeoCoordinate to, GeoCoordinate... via) throws java.lang.UnsupportedOperationException
RoutingComponent
calculateRoute
in interface RoutingComponent
l
- the listener to be notifiedfrom
- starting point as GeoCoordinateto
- target as GeoCoordinatevia
- a (possibly empty) set of vias for the route in correct order
java.lang.UnsupportedOperationException
- in every casepublic RoutePoint[] findRoute(GeoCoordinate from, GeoCoordinate to) throws java.lang.UnsupportedOperationException
RoutingComponent
findRoute
in interface RoutingComponent
from
- starting point as GeoCoordinateto
- target as GeoCoordinate
java.lang.UnsupportedOperationException
- in every casepublic RoutePoint[] findRoute(GeoCoordinate from, GeoCoordinate to, GeoCoordinate... via) throws java.lang.UnsupportedOperationException
RoutingComponent
findRoute
in interface RoutingComponent
from
- starting point as GeoCoordinateto
- target as GeoCoordinatevia
- a (possibly empty) set of vias for the route in correct order
java.lang.UnsupportedOperationException
- in every case
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |