mirror of
https://github.com/imjasonh/staticmaps
synced 2026-07-08 10:55:03 +00:00
use golang context package
This commit is contained in:
parent
70a0403b6d
commit
9d0e43710d
9 changed files with 9 additions and 9 deletions
|
|
@ -3,7 +3,7 @@ package maps
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type contextKey int
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// DistanceMatrix requests travel distance and time for a matrix of origins and destinations.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"net/url"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Elevation requests elevation data for a series of locations.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
2
maps.go
2
maps.go
|
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// StreetView requests a static StreetView image of the requested size.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// TimeZone requests time zone information about a location.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue