new alk.service.TrafficCameraMetadataService(opt_options)
This constructor creates a Service object to access the ALK PC Miler Traffic Camera Metadata Service.
| Option | Type | Description |
|---|---|---|
apiKey |
string |
This option contains the ALK ApiKey that gives you permission to extract data from ALK Servers. |
hostURL |
string |
This option contains the the host and port URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used. |
path |
string |
This option is the path part of the URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used. |
identifier |
string |
The string that identifies the camera. |
Extends
Methods
-
get(opts_or_callback, responseCallback)
-
This function performs a request for a
alkx.TrafficCameraMetadataServiceResponsefrom the options and defaults set on thisalk.service.TrafficCameraMetadataServiceobject.The response is handled by a asynchronous callback.
Name Type Description opts_or_callbackalkx.TrafficCameraMetadataServiceOptions | null | function Options override, if not the callback.
Attribute Type Description apiKeystring This option contains the ALK ApiKey that gives you permission to extract data from ALK Servers.
hostURLstring This option contains the the host and port URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used.
pathstring This option is the path part of the URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used.
identifierstring The string that identifies the camera.
responseCallbackfunction The callback that handles the response.
-
getAttribution(opts_or_callback, responseCallback){*|undefined} inherited
-
This method performs a request to this configured service using the supplied options, options set on the constructor, and defaults to get the service's attribution, should it have one. This call results in Object, which may be a parsed JSON response.
Name Type Description opts_or_callbackObject | function This parameter contains any options that override options that are set on this object for this particular request.
responseCallbackfunction This parameter is the function that handles the response.
-
getServiceOptions(options){Object} inherited
-
This method returns the base options that was used to create this Service object and override them with the given options;
Name Type Description optionsObject Returns:
The combined options.
-
getURL(opt_options){string} inherited
-
Returns the URL for the service based on the given options, options set on the constructor, and defaults.
Name Type Description optionsObject These options override any relevant options that are set on the object at its construction.
-
processResponse(options, obj){Object} inherited
-
This method processes the response from the server before it gives it to the callback. The default is to pass through.
NOTE
This intercept point will only be called if the request was initiated with the
getcall.Name Type Description optionsObject The call options combined with the base options used for the call.
objObject The object received from the server.