mapfitClient := mapfit.NewClient("mapfit-secret-token")
srcAddr := mapfit.Address{
StreetAddress: "avenue des Champs Elysee",
Locality: "Paris",
}
dstAddr := mapfit.Address{
StreetAddress: "Tour Eiffel",
Locality: "Paris",
}
// Directions API
directions, err := mapfitClient.GetDirections(srcAddr, dstAddr, "driving")
if err != nil {
panic(err)
}
fmt.Printf("%#v\n", directions)
// Geocode API
geocode, err := mapfitClient.Geocode(srcAddr)
if err != nil {
panic(err)
}
fmt.Printf("%#v\n", geocode)
-
Notifications
You must be signed in to change notification settings - Fork 0
Golang client for Mapfit https://mapfit.com
albttx/go-mapfit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Releases
No releases published
Packages 0
No packages published