Grid State
Types
Link copied to clipboard
data class FeatureByRoad(val feature: Feature, val road: Feature, val distance: Double = Double.POSITIVE_INFINITY)
Functions
Link copied to clipboard
open fun fixupCollectionAndCreateTrees(trees: Array<FeatureTree>, featureCollections: Array<FeatureCollection>)
Link copied to clipboard
Link copied to clipboard
fun getNearestFeatureOnRoadInFov(id: TreeId, location: LngLatAlt, left: LngLatAlt, right: LngLatAlt): GridState.FeatureByRoad?
Link copied to clipboard
fun getPointsOfInterestFeatureCollectionFromTileFeatureCollection(tileFeatureCollection: FeatureCollection): FeatureCollection
Parses out all the Points of Interest (POI) in a tile FeatureCollection.
Link copied to clipboard
The tile grid service is called each time the location changes. It checks if the location has moved away from the center of the current tile grid and if it has calculates a new grid.
Link copied to clipboard