1
0
Fork 0
mirror of https://github.com/imjasonh/staticmaps synced 2026-07-18 06:47:26 +00:00

support StreetView Images API

This commit is contained in:
Jason Hall 2014-10-07 10:10:14 -04:00
parent 65e4dccc17
commit fbc80b3a45
3 changed files with 73 additions and 0 deletions

View file

@ -75,3 +75,17 @@ func TestStaticMap(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
}
func TestStreetView(t *testing.T) {
c := NewClient("")
s := Size{600, 300}
opts := &StreetViewOpts{
Location: &LatLng{46.414382, 10.013988},
Heading: Float64(151.78),
Pitch: -0.76,
}
t.Logf("%s", baseURL+streetview(s, opts))
if _, err := c.StreetView(s, opts); err != nil {
t.Errorf("unexpected error: %v", err)
}
}