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 of the submitting user | x | ||
| db | measured loudness in dB(A) | an integer in [30 to 110] | x | |
| time | local time of the measurement. | 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 | tags associated to the measurements (comma separated) | free text |
That's it! You have created a trace that will be published and sharable through the website after its processing.
Here we describe the API functions to track or get raw collected data
Description: Returns the last measurements (max. 500) that match the specified criteria:
| Parameters | Description | Format | Default | Required |
| key | API key belonging to the user making the request | x | ||
| user | ID or username of the user associated with the measurements | |||
| tag | tags associated with the measurements | string (comma separated tags) | ||
| city | ID of the city where measurements were made | integer | ||
| geo | Geographical bounding box in which measurements were made | left,bottom,right,top (e.g. geo=11.54,48.142,11.5439,48.1454)
|
||
| dbmax | maximum decibel value | integer | ||
| dbmin | minimum decibel value | integer | ||
| since (Not yet implemented) | measurements since this date | timestamp in milliseconds | ||
| until (Not yet implemented) | measurements until this date | timestamp in milliseconds | ||
| max (Not yet implemented) | the maximum number of measurements returned | integer , max=100 | 20 | |
| format (Not yet implemented) | 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}]