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