Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreVillagesInDB ¶
AreVillagesInDB -- check if villages has been initialized(if exists)
func ClosestVillage ¶
ClosestVillage find closest village to point
Types ¶
type Village ¶
Village name, gps point lat, lon
func ParseToVillage ¶
ParseToVillage take slice of string splitted by delimiter and convert to Village struct
type VillageArr ¶
type VillageArr struct {
Arr []Village
}
VillageArr is there only, because json.Marshal
Click to show internal directories.
Click to hide internal directories.