GeoValue constructor
Data to store location information.
Specify the latitude in latitude and longitude in longitude. Specify the radius of the range in radiusKm to generate a GeoHash accordingly.
Using distance
and direction, you can calculate the distance and direction to other location information.
Using neighbors, you can get the surrounding GeoHash.
位置情報を保存するためのデータ。
latitudeに緯度、longitudeに経度を指定します。radiusKmに範囲の半径を指定するとそれに応じたGeoHashが生成されます。
distance
やdirectionを使うことで、他の位置情報との距離や方向を計算することができます。
neighborsを使うことで、周辺のGeoHashを取得することができます。
Implementation
const GeoValue({
required this.latitude,
required this.longitude,
this.radiusKm = 1.0,
}) : assert(radiusKm > 0.0, "[radiusKm] must be greater than 0.0");