StreetDescription

class StreetDescription(val name: String, val gridState: GridState)

Constructors

Link copied to clipboard
constructor(name: String, gridState: GridState)

Types

Link copied to clipboard
data class StreetLocationDescription(var name: String? = null, var behind: StreetDescription.StreetPosition = StreetPosition(), var ahead: StreetDescription.StreetPosition = StreetPosition())
Link copied to clipboard
data class StreetPosition(val name: String = "", val distance: Double = Double.MAX_VALUE)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun createDescription(matchedWay: Way, localizedContext: Context?)

createDescription creates the street description

Link copied to clipboard
fun describeLocation(location: LngLatAlt, heading: Double?, nearestWay: Way?, localizedContext: Context?): StreetDescription.StreetLocationDescription
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun distanceAlongStreet(startPoint: LngLatAlt?, distance: Double, ruler: Ruler): LngLatAlt?
Link copied to clipboard
Link copied to clipboard
fun getIntersectionText(intersection: Intersection?, way: Way?, localizedContext: Context?): String?
Link copied to clipboard
Link copied to clipboard

Given a point and a Way this function returns the best guess house number for it. The Boolean is true if the house number is on the other side of the street.

Link copied to clipboard
Link copied to clipboard
fun otherSide(side: Side): Side?
Link copied to clipboard
fun parseHouseNumber(houseNumber: String): Int?
Link copied to clipboard
fun parseHouseNumberRange(houseNumber: String): Pair<Int, Int>?
Link copied to clipboard
fun sideToBool(side: Side): Boolean?
Link copied to clipboard
fun whichSide(way: Way, direction: Boolean, pdh: PointAndDistanceAndHeading, location: LngLatAlt): Side