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:
parent
65e4dccc17
commit
fbc80b3a45
3 changed files with 73 additions and 0 deletions
14
maps_test.go
14
maps_test.go
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue