The SensorThings API offers a path segment $value at the end of the URL in order to retrieve the raw value of a property. An example of this can be found here:
However, I would like to have a path segment or query option that allows me to obtain raw values from queries of multiple rows. For example, if someone wants to get the latest observation value for a datastream, the object returned is not the raw value, but a JSON Object containing more properties.
To clarify, here is also an example of such an object.
The SensorThings API offers a path segment $value at the end of the URL in order to retrieve the raw value of a property. An example of this can be found here:
URL: https://toronto-bike-snapshot.sensorup.com/v1.0/Datastreams(206051)/Observations(1595467)/result/$value
Response
However, I would like to have a path segment or query option that allows me to obtain raw values from queries of multiple rows. For example, if someone wants to get the latest observation value for a datastream, the object returned is not the raw value, but a JSON Object containing more properties.
To clarify, here is also an example of such an object.
URL: https://toronto-bike-snapshot.sensorup.com/v1.0/Datastreams(206051)/Observations?$top=1&$orderby=phenomenonTime%20desc&$select=result
Response
However, I would like to obtain only the raw value as in the first example:
Is there any way to achieve this?
Thanks!