Warning: This page contains technical information
In the Car-park basic data section, there is a field entitled Url ping (see image).
Enter a URL (eg http://maquina.dominio.aaa/ruta?param=b) where your occupancy level is defined according to the format below. Mowiz will query this URL every time a user clicks on your parking to show your occupancy level. You may define your occupancy according to 3 different strategies as indicated below.
You should set your service to respond to a POST petition from our servers, as follows:
Content-Type: application/json
Charset: UTF-8
Content: It must answer an array of JSON objects with 3 properties each:
property 1) "f": Numeric field that indicates the date of data updating, measured in milliseconds since January 1, 1970, 00h: 00m: 00s GMT.
property 2) "pId": Alphanumeric field with your parking internal identifier, according to your nomenclature
property 3) "cual","cuant" ó "pct": Numeric field that indicates the number of free spaces
[ { "f":1290614018569, "pId":"10", "cual":1 } ]
[ { "f":1290614018569, "pId":"10", "cuant":35 } ]
[ { "f":1290614018569, "pId":"10", "pct":0.14 } ]
If you have several car parks and you have configured a unique URL to provide the occupancy data for all of them, you can concatenate as many JSON objects as you want. Or you can even mix visualization strategies according to your interest.
When our servers receive an array with more than one JSON object (like the example below), we will show the information of that whose identifier (parameter pId ) matches the one you indicated in the Car-park basic data form.
[ { "f":1290614018569, "pId":"PK1", "pct":0.14 }, { "f":1290614018569, "pId":"PK9", "cuant":28 },..{} ]
Next you can see three sample images of how is the occupancy displayed depending on the strategy chosen: