1
0
Fork 0
mirror of https://github.com/imjasonh/staticmaps synced 2026-07-16 20:42:04 +00:00

Add Elevation API

This commit is contained in:
Jason Hall 2014-10-07 11:00:16 -04:00
parent 42ad906d08
commit d2aa07c3bd
3 changed files with 117 additions and 0 deletions

View file

@ -86,6 +86,14 @@ func encodeLocations(ls []Location) string {
return strings.Join(s, "|")
}
func encodeLatLngs(ll []LatLng) string {
s := make([]string, len(ll))
for i, l := range ll {
s[i] = l.Location()
}
return strings.Join(s, "|")
}
func Float64(f float64) *float64 {
return &f
}