Documentation
¶
Index ¶
- func Distance(placekey1, placekey2 string) float64
- func FormatIsValid(placekey string) bool
- func FromGeo(lat, lon float64) string
- func FromH3(h3String string) string
- func FromH3Int(h3Int uint64) string
- func GetPrefixDistanceMap() map[int]float64
- func ToGeo(placekey string) (float64, float64)
- func ToGeoJSON(placekey string) string
- func ToH3(placekey string) string
- func ToH3Int(placekey string) uint64
- func ToHexBoundary(placekey string) [][]float64
- func ToPolygon(placekey string) orb.Polygon
- func ToWKT(placekey string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatIsValid ¶
FormatIsValid returns a boolean for whether or not the format of a Placekey is valid, including checks for valid encoding of location.
func GetPrefixDistanceMap ¶
GetPrefixDistanceMap returns a map of the length of a shared Placekey prefix to the maximal distance in meters between two Placekeys sharing a prefix of that length.
func ToHexBoundary ¶
ToHexBoundary returns the Polygon boundary of a Placekey as a slice of (latitude, longitude) coordinates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.