1
0
Fork 0
mirror of https://github.com/imjasonh/staticmaps synced 2026-07-10 20:21:45 +00:00
staticmaps/maps_test.go
2014-10-06 14:18:03 -04:00

21 lines
435 B
Go

package maps
import (
"testing"
"time"
)
func TestDirections(t *testing.T) {
c := NewClient("")
orig, dest := Address("111 8th Ave, NYC"), Address("170 E 92nd St, NYC")
opts := &DirectionsOpts{
Mode: ModeWalking,
DepartureTime: time.Now(),
}
t.Logf("%s", baseURL+directions(orig, dest, opts))
r, err := c.Directions(orig, dest, nil)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
t.Logf("%v", r)
}