1
0
Fork 0
mirror of https://github.com/imjasonh/staticmaps synced 2026-07-08 10:55:03 +00:00

fix build

This commit is contained in:
Jason Hall 2014-10-13 13:41:14 -04:00
parent 0746d8fc00
commit 862c7af424
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ func (do *DirectionsOpts) update(p url.Values) {
if do.Waypoints != nil {
v := ""
if do.OptimizeWaypoints {
v := "optimize:true|"
v = "optimize:true|"
}
p.Set("waypoints", v+encodeLocations(do.Waypoints))
}

View file

@ -165,7 +165,7 @@ func TestDistanceMatrix(t *testing.T) {
orig := []Location{Address("Vancouver, BC"), Address("Seattle")}
dst := []Location{Address("San Francisco"), Address("Victoria, BC")}
opts := &DistanceMatrixOpts{
Mode: String(ModeBicycling),
Mode: ModeBicycling,
Language: "fr-FR",
}
t.Logf("%s", baseURL+distancematrix(orig, dst, opts))