We describe here the process to feed the noisetube server of pollution data.
example: http://www.noisetube.net/api/update?key=myapikey&l=geo:12.23,2.12&tag=klaxon&time=2008-10-02T11:02:02 Z +02:00&db=56
| Parameters | Description | Format | Default | Required |
| key | the API key belonging to a user | x | ||
| db | measured loudness in dB(A) | an integer in [30 to 110] | x | |
| time | local time of the measure. | W3C datetime format: YYYY-MM-DDThh:mm:ss Z ±hh:mm |
x | |
| l | Location | geo:lat,lng e.g. l=geo:-12.23,2.12 | x | |
| tag | tag associated to the measure | free text |
That's it! You have created a trace that will be published and sharable through the website after its processing.
We describe here the web functions to track or get the raw collected data
Description: search the last measures having such criteria
| Parameters | Description | Format | Default | Required |
| key | the API key belonging to a user | x | ||
| user | user associated with the measure | |||
| tag | tag associated with the measure | integer (max=100) | ||
| city | ID of the city | integer | ||
| geo | a bounding box | left,bottom,right,top (e.g. geo=11.54,48.142,11.5439,48.1454)
|
||
| dbmax | maximum value of decibel | integer | ||
| dbmin | minimum value of decibel | integer | ||
| since | measures since this date | timestamp in milliseconds | ||
| until | measures until this date | timestamp in milliseconds | ||
| max | the maximum number of measures returned | integer , max=100 | 20 | |
| format(todo) | the output format | json,rss | json |
dataset=[{"lat":48.8536,"lng":2.38021,"tags":[],"date":1240213058000,"l":68},
{"lat":48.8536,"lng":2.38021,"tags":[],"date":1240213067000,"l":66},
{"lat":48.8536,"lng":2.38021,"tags":["colleague"],"date":1240213268000,"l":57}]
JSON Return:
dataset=[{"lat":48.8536,"lng":2.38021,"tags":[],"date":1240213058000,"l":68},
{"lat":48.8536,"lng":2.38021,"tags":[],"date":1240213067000,"l":66},
{"lat":48.8536,"lng":2.38021,"tags":["colleague"],"date":1240213268000,"l":57}]