Homepage

Service Map API: Using a saved QueryId

RETURN to main page of SERVICEMAP API

GET: Sii-Mobility Km4City: Smart City API, version 1 smart city API

 

--- the rest has been deprecated ---


http://servicemap.disit.org/WebAppGrafo/api/v1?queryId=[queryId-Read|queryId-ReadWrite]
&format=[json|html]

 
In this scenario, user can save a bunch of pins, making a query and save it on the Service Map.
Clicking on the save icon on the pin or in the category box, it is possible to save the query to obtain the results on the Service Map, as html or in json format.
The procedure to save the query is the same described before for services and selections APIs (cases 1 and 2). User has to compile a form with email, title and description of the query.
Two links will arrive by email: one for read only and one for read/write.
For example, the same selection query in the case 2, searching services around Chiesa di Santa Maria Novella, in this case the API URL becomes:

http://servicemap.disit.org/WebAppGrafo/api/v1?queryId=8469888d2cf60a98f... for read only, and


http://servicemap.disit.org/WebAppGrafo/api/v1?queryId=a0dcb5b0cc63610c7...  to edit the query and resave it (read/write).


In the first case, two link will be provided, one for html and on for json results. For the second link, only html results are provided as on Service Map is possible to edit the query and overwrite the previous version.

Figure 1:overwrite the query


Figure 2: insert new title and description


The results in json format are structurally equal to the previous presented.
Please note, that once the query is overwritten, the link for read only is updated to the newest version.
0
Your rating: None


Warning: Table '.\drupal\sessions' is marked as crashed and should be repaired query: UPDATE sessions SET uid = 0, cache = 0, hostname = '192.168.0.44', session = 'hidePDA|s:1:\"0\";', timestamp = 1714659281 WHERE sid = '5448c3d115ee66ae74217e19a28739f3' in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\database.mysqli.inc on line 128