/** * ${@inheritDoc}. * * @see * org.openstreetmap.osm.data.IDataSet#getNearestNode(org.openstreetmap.osm.data.coordinates.LatLon, * org.openstreetmap.osm.data.Selector) */ public Node getNearestNode(final LatLon aLastGPSPos, final Selector aSelector) { Node n = myCachingDataSet.getNearestNode(aLastGPSPos, aSelector); if (n == null) { n = myDataSource.getNearestNode(aLastGPSPos, aSelector); if (n != null) cacheNode(n); } return n; }