Homepage

ServiceMap API: Full text search

RETURN to main page of SERVICEMAP API


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

 

--- the rest has been deprecated ---


This API provides a way to search for keywords (separated by spaces) that should be present in any field associated with a service or any other thing that is geo-located. Optionally the search may be restricted to an area given the center with latitude and longitude as decimal degrees and the radius in km. The number of results maybe limited to a maximum.

http://servicemap.disit.org/WebAppGrafo/api/v1?search=...text..&[selection=<lat>;<lng>&maxDists=dist[&lang=it|en][&format=[json|html]&maxResults=nResults
 
The parameters are:
  • search: is a list of keywords to be matched in the fields associated with an entity, the keywords should be separated by space.
  • selection: (optional) if specified should be latitude;longitude, it indicates the center of the region where to find results.
  • maxDists: (optional) if selection is specified it indicates the maximum distance of the entity from the point specified as selection.
  • maxResults: the maximum number of results to be returned, 0 means all results. 100 is the default value.
  • format: json/html indicates the result format.
  • lang: (optional) is the language to be returned for the serviceLabel, it can be 'it' or 'en', if not specified 'en' is used.
For example:

http://servicemap.disit.org/WebAppGrafo/api/v1?search=palazzo%20medici&maxResults=50&format=json

Reports all the services with palazzo and medici. Or ask for the Web Page with:

http://servicemap.disit.org/WebAppGrafo/api/v1?search=palazzo%20medici&maxResults=50&format=html

    
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 = 1711718138 WHERE sid = 'e5443e4ca48b7cbd5850d2a3fea7d68f' in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\database.mysqli.inc on line 128