HTML5 MicroApplications Smart City API

×

Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

Each view of the Web and Mobile App also known as: “Firenze dove cosa” and/or “Toscana dove cosa”, available on Google Play, Apple store and Microsoft Store, and as HTML5 applications can be invoked separately to create MicroApplications. These MicroApplications are listed below together a link to call them see https://www.snap4city.org/dashboardSmartCity/management/microApplications.php . They can be invoked directly and embedded into third party web pages and in the City Dashboards produced by the Dashboard Builder.

App A.1.                      General Call

URL

https://www.km4city.org/webapp-new/   

This call allows users to go directly to perform the functions in the web app without interacting with the buttons.

This version refers to the Knowledge Base containing Florence and the whole Tuscany.

Parameters

operation

-optional-

One of the following values:

  • discovercity
  • aroundyou
  • aroundyou/accomodation
  • aroundyou/agricultureandlivestock
  • aroundyou/advertising
  • aroundyou/civilandedilengineering
  • aroundyou/culturalactivity
  • aroundyou/educationandresearch
  • aroundyou/emergency
  • aroundyou/entertainment
  • aroundyou/environment
  • aroundyou/financialservice
  • aroundyou/governmentoffice
  • aroundyou/healtcare
  • aroundyou/industryandmanufacturing
  • aroundyou/miningandquarrying
  • aroundyou/shoppingandservice
  • aroundyou/tourismservice
  • aroundyou/transferserviceandrenting
  • aroundyou/utilitiesandsupply
  • aroundyou/wholesale
  • aroundyou/wineandfood
  • textsearch
  • poi
  • publictransport
  • publictransport/ticket
  • publictransport/pathfinder
  • publictransport/timetable
  • publictransport/tplsearcher
  • privatetransport
  • privatetransport/cyclepaths
  • privatetransport/autosearcher
  • privatetransport/carposition
  • privatetransport/fuelstation
  • privatetransport/parking
  • privatetransport/pathfinder
  • events
  • suggestionsnearyou
  • suggestions
  • weather
  • personalassistant
  • environmentmenu
  • environmentmenu/infosoc
  • environmentmenu/weatherinmenu
  • environmentmenu/cyclepathsenvironment
  • environmentmenu/greenareas
  • environmentmenu/agricultureandlivestockenvironment
  • environmentmenu/environment2
  • environmentmenu/pollen
  • environmentmenu/pollution
  • health
  • health/emergencymenu
  • health/healtcaremenu
  • health/pharmacy
  • health/firstaid
  • other
  • other/favourites
  • other/chronology
  • other/lastcontribution
  • other/rating
  • other/information
  • other/tips
  • authentication
  • settings
  • aboutus

coordinates

-optional-

<latitude>; <longitude>

If present, disables information coming from the GPS sensor and manually enters these values.

serviceuri

-optional-

Show details of a serviceuri

http://www.km4city.org/webapp-new/?serviceuri=Bus_ataflinea_Stop_FM0017_5
http://www.km4city.org/webapp-new/?serviceUri=http://www.disit.org/km4city/resource/Bus_ataflinea_Stop_FM0017_5

geoJson

-optional-

Get a GeoJson passed as URL and draw it on the map

https://www.km4city.org/webapp-new/?geoJsonUri=http://servicemap.km4city.org/WebAppGrafo/api/v1/events/?range=week&lang=it&maxResults=100

lang

-optional-

 

Change the language of the interface. Possible values (ita, eng, fra, deu, esp)

https://www.km4city.org/webapp-new/?operation=privatetransport&lang=fra  

https://www.km4city.org/webapp-new/?operation=health&lang=deu

https://www.km4city.org/webapp-new/?operation=aroundyou&lang=eng

     

App A.2.                      Optional parameters for specific operation

operation

publictransport/pathfinder

privatetransport/pathfinder

destination

<latitude>; <longitude>

These values are entered as the destination point and the route is calculated using the values entered in the coordinates parameter as the starting point

routeType

One of the following:

  • car
  • foot_shortest
  • foot_quiet
  • public_transport

https://www.km4city.org/webapp-new/?operation=pathfinder&destination=43.720953;10.409746&coordinates=43.533860;11.568589&routeType=foot_shortest

 

https://www.km4city.org/webapp-new/?operation=pathfinder&destination=43.7711;11.2713&coordinates=43.795;11.2652&routeType=public_transport

operation

search operations

maxDistance

maximum distance from the GPS position of the services to be retrieved, expressed in Km (0.1 is used if parameter is missing)

maxResults

maximum number of results to be returned (if parameter is missing 100 is assumed), if it is 0 all results are returned

https://www.km4city.org/webapp-new/?coordinates=43.80953;11.25&operation=aroundyou/civilandedilengineering&maxDistance=2&maxResults=50

     

App A.3.                      Wider set of Examples