-
Notifications
You must be signed in to change notification settings - Fork 2
Generic Example
Maciej Mionskowski edited this page Apr 24, 2016
·
3 revisions
You can use SDK's wrapper to execute requests to route4me service.
Creating and passing structs with http
tag on parameters will result in those parameters being placed in the QueryString.
client := &route4me.NewClient("11111111111111111111111111111111")
parameters := &struct{
Limit int `http:"limit"`
Offset int `http:"offset"`
}{
Limit: 10,
Offset: 5,
}
response := &[]routing.DataObject{}
err := client.Do(http.MethodGet, "/api.v4/route.php", parameters, response)
if err != nil {
//handle errors
return
}
//Do something with data object
- Activity
- Addressbook
- Routing
- Single Driver Route 10 Stops
- Single Driver Round Trip
- Single Depot Multiple Driver No Time Windows
- Single Depot Multiple Driver Time Windows
- Multiple Depot Multiple Driver
- Multiple Depot Multiple Driver With Time Windows
- Multiple Depot Multiple Driver With Time Windows (24 Stops)
- Tracking
- Geocoding
- Users
- Territories
- Orders
- Vehicles
- Telematics