Skip to content

Instantly share code, notes, and snippets.

@mkatychev
Created July 4, 2019 23:34
Show Gist options
  • Save mkatychev/c65c5978081cb0c818210e5364a41e36 to your computer and use it in GitHub Desktop.
Save mkatychev/c65c5978081cb0c818210e5364a41e36 to your computer and use it in GitHub Desktop.
places
package main
import (
"fmt"
)
type Place struct {
name string
location [2]float64
}
func main() {
places := []Place{
Place{
"Saint Joseph's Oratory of Mount Royal",
[2]float64{45.4926298, -73.6223628},
},
Place{
"Mont Royal",
[2]float64{45.489343, -73.6187794},
},
Place{
"Vieux Port",
[2]float64{45.4951342, -73.597193},
},
Place{
"Biodome",
[2]float64{45.5515404, -73.5992529},
},
Place{
"Île Sainte-Hélène/Biosphere/La Ronde",
[2]float64{45.5303797, -73.5747053},
},
Place{
"Jardin Botanique",
[2]float64{45.5152256, -73.6016561},
},
Place{
"Parc Lafontaine",
[2]float64{45.5270821, -73.5714702},
},
Place{
"Parc National Mont-Tremblant",
[2]float64{46.1413435, -74.0378477},
},
Place{
"Parc National Îles-de-Boucherville",
[2]float64{45.6050079, -73.5261252},
},
Place{
"MAC Musée d'art contemporain de Montréal",
[2]float64{45.5085944, -73.5669806},
},
Place{
"Dorchester Square",
[2]float64{45.4989433, -73.5702636},
},
Place{
"Place des Arts",
[2]float64{45.5083198, -73.5664312},
},
}
for _, place := range places {
fmt.Printf("%+v\n", place)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment