func PrintNearestStopAreas(points []openapi.NearestStopArea) { for _, p := range points { lat, lon := openapi.GridToGeodetic(p.X, p.Y) fmt.Printf("%s,%d,%s,%f,%f,%d\n", p.Name, p.Id, "STOP_AREA", lat, lon, p.Distance) } }
func PrintPoints(points []openapi.Point) { for _, p := range points { lat, lon := openapi.GridToGeodetic(p.X, p.Y) fmt.Printf("%s,%d,%s,%f,%f\n", p.Name, p.Id, p.Type, lat, lon) } }