Java Code Examples for org.matsim.api.core.v01.network.Link#getCoord()
The following examples show how to use
org.matsim.api.core.v01.network.Link#getCoord() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FastLinkLookup.java From amodeus with GNU General Public License v2.0 | 4 votes |
public Tensor wgs84fromLink(Link link) { Coord local = link.getCoord(); return TensorCoords.toTensor(db.referenceFrame.coords_toWGS84().transform(local)); }
Example 2
Source File: MultiODHeuristic.java From amodeus with GNU General Public License v2.0 | 4 votes |
private DvrpVehicle findClosestVehicle(Link link) { Coord coord = link.getCoord(); return availableVehiclesTree.getClosest(coord.getX(), coord.getY()); }
Example 3
Source File: MultiODHeuristic.java From amodeus with GNU General Public License v2.0 | 4 votes |
private AggregatedRequest findClosestRequest(Link link) { Coord coord = link.getCoord(); return pendingRequestsTree.getClosest(coord.getX(), coord.getY()); }
Example 4
Source File: SingleHeuristicDispatcher.java From amodeus with GNU General Public License v2.0 | 4 votes |
private DvrpVehicle findClosestVehicle(Link link) { Coord coord = link.getCoord(); return availableVehiclesTree.getClosest(coord.getX(), coord.getY()); }
Example 5
Source File: SingleHeuristicDispatcher.java From amodeus with GNU General Public License v2.0 | 4 votes |
private PassengerRequest findClosestRequest(Link link) { Coord coord = link.getCoord(); return pendingRequestsTree.getClosest(coord.getX(), coord.getY()); }