func NewProvider(api *API, vid string, cache time.Duration) *Provider {
	impl := &Provider{
		statusG: provider.NewCached(func() (interface{}, error) {
			return api.Status(vid)
		}, cache).InterfaceGetter(),
	}
	return impl
}
// NewProvider creates a new vehicle
NewProvider creates a new vehicle
// NewProvider creates a new vehicle
func NewProvider(api *API, vid string, cache time.Duration) *Provider {
	impl := &Provider{
		statusG: provider.NewCached(func() (interface{}, error) {
			return api.Status(vid)
		}, cache).InterfaceGetter(),
	}
	return impl
}
func NewProvider ( api * API , vid string , cache time . Duration ) * Provider { impl := & Provider { statusG : provider . NewCached ( func ( ) ( interface { } , error ) { return api . Status ( vid ) } , cache ) . InterfaceGetter ( ) , } return impl }
NewProvider creates a new vehicle
NewProvider creates a new vehicle