public class PoiExtension extends GeoExtensionBase<OsmNode>
OsmNode
s.findClosestPoiByCoordinate(double, double, ClazzFlagPredicate)
,
findCloserPoiByCoordinate(double, double, ClazzFlagPredicate, double, boolean)
,
PoiExtensionBuilderDb
,
PoiExtensionBuilder2po
,
GeoExtensionBase
,
GeoExtensionBuilderBase
Modifier and Type | Class and Description |
---|---|
static class |
PoiExtension.PoiIndexAndDistance
Kapselt einen Index und eine Distanz
|
Constructor and Description |
---|
PoiExtension() |
Modifier and Type | Method and Description |
---|---|
OsmNode[] |
findByCoordinate(double lat,
double lon,
ClazzFlagPredicate filter)
Liefert ein Objekt-Array zu einer Koordinate.
|
PoiExtension.PoiIndexAndDistance |
findCloserPoiByCoordinate(double lat,
double lon,
ClazzFlagPredicate filter,
double currentDist,
boolean returnFirstFound)
Findet den dichtesten POI ausgehend von einer Maximal-Distanz.
|
OsmNode |
findClosestPoiByCoordinate(double lat,
double lon,
ClazzFlagPredicate filter)
Findet den dichtesten POI zu einer Koordinate.
|
connect, disconnect, findById, findByIndex, findByName, findClazzByIndex, findIndexesForZone, findIndexesForZone, findIndexForId, getIndexLength, getLog, getZoneSize, isNearby, readFromStream
writeToStream
public OsmNode[] findByCoordinate(double lat, double lon, ClazzFlagPredicate filter)
GeoExtensionBase
findByCoordinate
in class GeoExtensionBase<OsmNode>
lat
- double Breitengradlon
- double Laengengradfilter
- ClazzFlagPredicate
NULLABLE.OsmObject
s oder null.public OsmNode findClosestPoiByCoordinate(double lat, double lon, ClazzFlagPredicate filter)
lat
- double Breitengradlon
- double Laengengradfilter
- ClazzFlagPredicate
OsmNode
oder null.public final PoiExtension.PoiIndexAndDistance findCloserPoiByCoordinate(double lat, double lon, ClazzFlagPredicate filter, double currentDist, boolean returnFirstFound)
lat
- double Breitengradlon
- double Laengengradfilter
- ClazzFlagPredicate
currentDist
- double Maximale DistanzreturnFirstFound
- boolean true: liefert einen beliebigen ersten TrefferPoiExtension.PoiIndexAndDistance
, also PoiIndex und die Distanz oder null