Test Case Title |
TC5.15 - Snap4City Smart City API Collection and overview, real time |
Goal |
I can Use Snap4City Smart City API to develop web and/or mobile applications and/or other services; to create a web page, to create a web app. I can use Smart City API for creating web and mobile application independent on the organization. So that this technolocy allows the developer to realize an App that canbe used in multiple Location: Firenze, Helsinki, Antwerp, etc. on the basis of the GPS coordinates adapting the App to the service available, without changing the call to the Smart City API. |
Prerequisites |
Using a PC or Mobile with a web browser. Access to Smart City API user manual. Access to the development tool kit exemplified. The following functionalities are available only for specific Snap4city users with specific privileges. See also: TC5.16 - Exploiting Smart City API for developing Mobile and Web Apps |
Expected successful result |
Learn how to use the Advanced Smart City API to create a web and/or mobile applications. We have also experienced in applications that are implemented on POS for producing receipts with advertising regarding events in the city and POI. |
Steps |
The updated Snap4City mobile development App Kit as open source for developing mobile and web App using cordoba apache is accessible on GitHUB from:
https://github.com/disit/snap4cityAppKit
See also: TC5.16 - Exploiting Smart City API for developing Mobile and Web Apps
The whole set of Snap4City API also called Smart City API. They are listed and well documented in SWAGGER https://www.km4city.org/swagger/external as reported in the above image. In addition, they have been tested and validated by using standard tools.
The updated Snap4City mobile development App Kit as open source for developing mobile and web App using Cordoba Apache is accessible on GitHUB from:
https://github.com/disit/snap4cityAppKit
ServiceMap can be accessed from the main menu: "Knowledge and maps--> ServiceMap". Please note that the ServiceMap may be different for each Organization and city to faciliate the positioning of the map in the center of the geo area of the organization. On the other hand, the Smart City API can be generalized by invoking in the final application the SUPER federated Smart City API with the same API call to create Web and Mobile Applications that are independent on the Organization.
The set of Snap4City API includes the following main API that may have a value for the city developers:
- Advanced Smart City API described in mode details below. These APIs are also accessible as IOT MicroServices block for IOT Applications as described in https://www.km4city.org/iot-micro-doc/user.html, and https://www.km4city.org/iot-micro-doc/index.html
- IOT Device Registration API: which can be used to register IOT devices to the IOT Directory, also accessible as IOT MicroServices block for IOT Applications
- Notificator API: to get informed about notifications defined in the Notificator and City Dashboard, also accessible as IOT MicroServices block for IOT Applications
- DISCES Scheduler API: for monitoring and controlling back office processes of data ingestion and analytics, also accessible as IOT MicroServices block for IOT Applications, for developers
- Km4City Web App API, also called MicroApplications, these applications can be called as API Rest as well and can be integrated into City Dashboards, so that directly from the Dashboard Builder and/or from the IOT applications you create
- Resource Manager API, also called ProcessLoader API: they can be used to save and search Resources managed by the Resource Manager (https://processloader.snap4city.org ), they can be IOT Applications, ETL processes, Data Analytics Processes, Dashboard, etc. They can be saved and retrieve from the API so that the other tools can use the Resource Manager as show case of their instances, to share and promote they work.
- Sensor API: it is a strange name for their usage. In effect are API that the mobile phone and other devices can use to communicate to the back office about their status, position, etc. It is also used to get back suggestions, hints, assistance, soundages, etc.
The Advanced Smart City API can be used to develop Web (HTML5) and Mobile Apps and provides support for a number of services:
- Search data: by text, near, along line, POI, etc. resolving text to GPS and formal city nodes model, resolving from GPS to street civic number, etc.
- Empowering the city users: collecting data from end users’ bidirectional data flow; votes, comments, images;
- Access to event information provided that they are loaded into the storage with some ETL or NodeRED process;
- accessing to info and service on Public Mobility: busstops, public transport lines (bus, train, and ferry), public routes, public transport position, arrival time, etc.;
- accessing to info and service on Private Mobility: routing, parking recovery;
- accessing to Cultural and Touristic information, POI;
- accessing to health services & Environmental info;
- requesting routing: car, vehicle, multimodal exploiting pedestrian and any public transport, if any;
- requesting Suggestions;
- requesting Personal Assistant hints, provided that you have an Assistant installed in the solution;
- subscription/request of a Snap4City Applications;
- Sharing knowledge among cities
- providing feedback about services
- IOT device Discovery
- IOT sensor/actuator Discovery by ValueType and/or ValueUnit
Snap4City APIs support real time data streams, on demand and event driven. Real time open data are managed in the full stack from IOT Device/Brokers, IOT Applications and Dashboard such as via: WebSockets, MQTT, etc. The real time stream can be managed at level of IOT Device/Application, Data Analytics and directly on Dashboards with WebSockets. In addition, the so-called Sensor API for Mobile Phone and other devices can be used to communicate to the back office about their status, position, etc. It is also used to get back suggestions, hints, assistance, soundages, etc.
Snap4City Smart City API:
- Advanced Smart City API: https://www.snap4city.org/download/video/Km4City_Smart_City_API_Guideline_version_1_Sii-Mobility.pdf
- Tutorial for App developers using Advanced Smart City API: https://www.disit.org/7044
- Documentation in Swagger: https://www.km4city.org/swagger/
- Testing in Postman: https://documenter.getpostman.com/view/4177198/km4city-api/RW83QsX5
- Web page here on testing Snap4City API: https://www.snap4city.org/drupal/node/70
Web/Mobile MicroApplication services:
- User manual:https://www.snap4city.org/download/docs/Km4city Web App APIv0-4.pdf
- Web App Km4City as HTML5 app on web: https://www.km4city.org/webapp-new/
- Km4City mobile App are on stores such as: Google Play, Apple Store, etc.
In addition, internally at the platform there are a number of API which are used to communicate among the modules of the Snap4City platform. Most of API are not accessible from outisde the platform for safety reasons https://www.km4city.org/swagger/internal They are for IOT device registration, noticator API, DISCES, Resource Manager, Sensors from mobiles devices, event logger, ownerhip, and data management.
The Advanced Smart City APIs are strictly connected with the ServiceMap. In the infrastructure multiple ServiceMap can be hosted and each of them provides a specific Advanced Smart City API entry point. The Snap4City solution can gather background information about the city in several formats and from several different sources. Typically, the initial structural data can be ingested by: Open Street Map regarding the city structure (streets, civic numbers, etc.), that can be in turn enriched with additional information a city/region may have. The process for passing from OSM to Km4City is described into the manual loaded in the Google Drive:
In particular:
- Antwerp: https://antwerp.snap4city.org
- Helsinki: https://helsinki.snap4city.org
- Tuscany: https://servicemap.km4city.org/
- Sardinia, Emilia Romagna, Veneto: https://www.disit.org/smosm/
The updated Snap4City mobile development App Kit as open source for developing mobile and web App using cordoba apache is accessible on GitHUB from:
https://github.com/disit/snap4cityAppKit
Example 1: make a request to Advanced Smart City API to get data related to POI and/or IOT devices
They extended the open Smart City API of Km4City for developing Web (HTML5) and Mobile Apps [devkit]. Advanced Smart City API provides support for many services:
- Search data: by text, near, along line, POI, etc. resolving text to GPS and formal city nodes model
- Search for Accommodation, bus stop, sensor site or car park within 200m
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7756;11.2490&categories=Accommodation;BusStop;SensorSite;Car_park&maxResults=10&maxDists=0.2&lang=it&format=json
In all cases, the resulting data are provided in JSON similar to:
{
"BusStops": {
"fullCount": 25,
"type": "FeatureCollection",
"features":[
{
"geometry":{"type": "Point","coordinates":[11.248678, 43.775333]},
"type": "Feature",
"properties": {
"name": "Stazione Santa Caterina",
"typeLabel": "Fermata",
"tipo": "fermata",
"serviceType": "TransferServiceAndRenting_BusStop",
"busLines": "13 - 14 - 17 - 17N - 22 - 6",
"serviceUri": "http://www.disit.org/km4city/resource/Bus_ataflinea_Stop_FM7004_5",
"distance": "0.039300903508044216",
"agency": "Ataf&Linea",
"agencyUri": "http://www.disit.org/km4city/resource/Bus_ataflinea_Agency_172",
"photoThumbs": []
},
"id": 1
},
{
"geometry":{"type": "Point","coordinates":[11.249319, 43.776028]},
"type": "Feature",
"properties": {
"name": "Stazione Parcheggio",
"typeLabel": "Fermata",
"tipo": "fermata",
"serviceType": "TransferServiceAndRenting_BusStop",
"busLines": "12",
"serviceUri": "http://www.disit.org/km4city/resource/Bus_ataflinea_Stop_FM0313_5",
"distance": "0.053986855820746346",
"agency": "Ataf&Linea",
"agencyUri": "http://www.disit.org/km4city/resource/Bus_ataflinea_Agency_172",
"photoThumbs": []
},
"id": 2
},
{
"geometry":{"type": "Point","coordinates":[11.249555, 43.776028]},
"type": "Feature",
"properties": {
"name": "Firenze Stazione Valfonda",
"typeLabel": "Fermata",
"tipo": "fermata",
"serviceType": "TransferServiceAndRenting_BusStop",
"busLines": "SI330 - SI90",
"serviceUri": "http://www.disit.org/km4city/resource/Bus_etruriamobilita_Stop_F0287_2",
"distance": "0.06511370212220095",
"agency": "Etruria Mobilità",
"agencyUri": "http://www.disit.org/km4city/resource/Bus_etruriamobilita_Agency_168",
"photoThumbs": []
},
"id": 3
}]}
,"SensorSites": {
"fullCount": 3,
"type": "FeatureCollection",
"features": [
{
"geometry":{"type": "Point","coordinates":[11.2498200023853,43.7750499961699]},
"type": "Feature",
"properties": {
"name": "FI055ZTL00101",
"tipo": "sensore",
"typeLabel": "Sensore",
"serviceType": "TransferServiceAndRenting_SensorSite",
"serviceUri": "http://www.disit.org/km4city/resource/FI055ZTL00101",
"distance": "0.08971043872639867",
"photoThumbs": []
},
"id": 1
},
{
"geometry":{"type": "Point","coordinates":[11.2500286102,43.7747001648]},
{
..
..
- Search any service whose geometry contains a GPS position
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7754;11.2494&categories=Service&maxResults=20&maxDists=inside&lang=it&format=json&geometry=true - Search an accommodation within 1Km with “casa di dante” in a textual description
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7754;11.2494&categories=Accommodation&maxResults=2&maxDists=1&lang=it&format=json&text=casa%20di%20dante - Search for Wine and food in 100m from Palazzo Vecchio
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=http://www.disit.org/km4city/resource/7ad6d2d3be461b1f0514956279c00eab&categories=WineAndFood&maxResults=10&lang=it&format=json - Search for an accommodation, bus stop, sensor site or car park in a GPS rectangular area
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7741;11.2453;43.7768;11.2515&categories=Accommodation;BusStop;SensorSite;Car_park&maxResults=10&lang=it&format=json - Search for any service in a WKT area POLYGON((11.25539 43.77339,11.25608 43.77348,11.25706 43.77362,11.25759 43.77328,11.25755 43.77291,11.25675 43.77260,11.25536 43.77270,11.25539 43.77339))
- https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=wkt:POLYGON((11.25539%2043.77339,11.25608%2043.77348,11.25706%2043.77362,11.25759%2043.77328,11.25755%2043.77291,11.25675%2043.77260,11.25536%2043.77270,11.25539%2043.77339))&categories=Service&maxResults=0&lang=it&format=html
- http://helsinki.km4city.org/wkt
- http://antwerp.km4city.org/wkt
- Search for any geolocated entity matching “via nave”
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?search=via%20nave&maxResults=10&lang=en&format=json - Search for events of today
https://servicemap.snap4city.org/WebAppGrafo/api/v1/events/?range=day&format=json - Search address by GPS position
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?position=43.7741;11.2505&format=json - Search address by text
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?search=via%20calzaioli&format=json - Search for any service in a WKT area geo:ritmi_01 (stored on server)
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=geo:ritmi_01&categories=Service&maxResults=100&lang=it&format=html - accessing to info and service on Public Mobility;
- List all TPL agencies providing time table data (as defined in GTFS)
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/agencies - List all transport lines of an agency
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/bus-lines/?agency=http://www.disit.org/km4city/resource/Bus_ataflinea_Agency_172 - List all routes of a line provided by name
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/bus-routes/?agency=http://www.disit.org/km4city/resource/Bus_ataflinea_Agency_172&line=11&geometry=true - List all stops of a route
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/bus-stops/?route=http://www.disit.org/km4city/resource/Bus_ataflinea_Trip_1923_3337883&geometry=true - List all routes with a stop in a specified area
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/?selection=43.7755;11.2495&maxDists=0.1&maxResults=5&geometry=true - Estimated position of bus based on the time table
https://servicemap.snap4city.org/WebAppGrafo/api/v1/tpl/bus-position/?format=json
- List all TPL agencies providing time table data (as defined in GTFS)
- Service on Private Mobility;
- Retrieve information of a traffic sensor
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/METRO487&format=json - Retrieve information of a car park with current status, predictions and typical free parks during the day
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/CarParkCareggi&format=json
- Retrieve information of a traffic sensor
- accessing to Cultural and Touristic information, POI;
- Retrieve information for “Campanile di Giotto”
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/62af54abbe1348c5a911626cbd144235 - Get city cultural events of the day (or week or month)
https://servicemap.snap4city.org/WebAppGrafo/api/v1/events/?range=day&format=json
- Retrieve information for “Campanile di Giotto”
- accessing to health services & Environmental info;
- Retrieve first aid status with number of patient present in queue with different color code
https://www.disit.org/ServiceMap/api/v1/?serviceUri=http://www.disit.org/km4city/resource/dde440c760ef578da41599feb2396631 - Retrieve the pollution concentration for an air quality monitoring station
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/ARPAT_QA_FI-GRAMSCI - Retrieve the pollination concentration for an pollen monitoring station
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/Pollen_Arezzo
- Retrieve first aid status with number of patient present in queue with different color code
- requesting routing: car, vehicle, multimodal;
- Routing on foot between two GPS positions
https://servicemap.snap4city.org/WebAppGrafo/api/v1/shortestpath/?source=43.7767;11.2477&destination=43.7687;11.2620&routeType=foot_shortest&format=html - Routing by car between two GPS positions
https://servicemap.snap4city.org/WebAppGrafo/api/v1/shortestpath/?source=43.8003;11.2370&destination=43.7856;11.2556&routeType=car&format=html - Routing by public transport between two GPS positions
https://servicemap.snap4city.org/WebAppGrafo/api/v1/shortestpath/?source=43.8003;11.2370&destination=43.7856;11.2556&routeType=public_transport&format=html
- Routing on foot between two GPS positions
Example 2: Getting GPS services structured information:
The following example return an HTML, the same call with JSON at the end can allow you to get the data
- Search streets, POI, descriptors, geolocations, GPS
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7747;11.2548&format=html
- close to a civic number, POI, BUS stop,
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=http://www.disit.org/km4city/resource/Bus_ataflinea_Stop_FM1873_5&format=html
- The same call with JSON at the end can allow you to get the data
- within a given distance from a GPS point, from a point of interest, from a Bus Stop, ..
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7747;11.2548&maxDists=0.5&maxResults=0&format=html
- The same call with JSON at the end can allow you to get the data
- along a path: cycling, street, railways, along a public transport, on cycling paths
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=geo:ATAF%204&maxResults=0&format=html
- The same call with JSON at the end can allow you to get the data
- in a geographic region/area, in gardens,
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=geo:ZCS1D&maxResults=0&format=html
- The same call with JSON at the end can allow you to get the data
- inside a closed polyline, in an area, areas,
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=wkt:POLYGON((11.25539%2043.77339,11.25608%2043.77348,11.25706%2043.77362,11.25759%2043.77328,11.25755%2043.77291,11.25675%2043.77260,11.25536%2043.77270,11.25539%2043.77339))&categories=Service&maxResults=0&lang=it&format=html
- The same call with JSON at the end can allow you to get the data
- inside a squared area identified by two corners
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7741;11.2453;43.7768;11.2515&maxResults=0&format=html
- inside the visible area
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1?queryId=3ed2948bc6e65bce46362471c8d4adb7&format=html
- The same call with JSON at the end can allow you to get the data
- of the same macro category, category, ..
- To test click on the link to see a live example (same macro category): https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7741;11.2453;43.7768;11.2515&maxResults=0&categories=Accommodation&format=html
- The same call with JSON at the end can allow you to get the data
- close to a civic number, POI, BUS stop,
Example 3: Getting GPS coordinate from services
- Get GPS coordinates to the closer civic number:
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?position=43.773696885019014;11.237125396728516 - the first call action return on browser
number |
"1" |
address |
"VIA GIOVANNI ANTONIO SOGLIANI" |
addressUri |
|
municipality |
"FIRENZE" |
municipalityUri |
- get GPS coordinates to the closer BUS stops,
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7776;11.2497&maxDists=0.1&categories=BusStop&format=json - get GPS coordinates to the closer TPL routes
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?position=43.7774;11.2384&intersectGeom=true&format=json - The action return
number |
"7" |
address |
"VIALE FRATELLI ROSSELLI" |
intersect |
|
distance |
0.00021905954402899085 |
name |
"Firenze Card" |
type |
"LineString" |
uri |
"http://www.disit.org/km4city/resource/2a93692aa1eb7d680d9b4e0da668b408" |
class |
|
1 |
|
distance |
|
name |
"Spartitraffico di viale Fratelli Rosselli - piazzale di Porta al Prato" |
type |
"Polygon" |
uri |
"http://www.disit.org/km4city/resource/ff05267eb9e6a7cc8ea3d9f8b6ae93cd" |
class |
|
2 |
|
distance |
|
name |
"ZCS_1_D" |
type |
"Polygon" |
uri |
"http://www.disit.org/km4city/resource/bee219f7c86416cc5d57e45744d42eed" |
class |
"http://www.disit.org/km4city/schema#Controlled_parking_zone" |
3 |
|
distance |
0.0002675171725087246 |
name |
"percorsi_ciclabili.191" |
type |
"LineString" |
uri |
"http://www.disit.org/km4city/resource/b9256bc7d310eb012fc2db96bca187e3" |
class |
|
4 |
|
agency |
"Ataf&Linea" |
distance |
0.00028637316303552354 |
name |
"C2" |
type |
"LineString" |
uri |
"http://www.disit.org/km4city/resource/Bus_ataflinea_Trip_2199_3472052" |
class |
|
routeType |
"Bus" |
direction |
"Leopolda" |
5 |
|
agency |
"Autolinee Chianti Valdarno" |
distance |
0.0003337107962910289 |
name |
"365 A" |
type |
"LineString" |
uri |
"http://www.disit.org/km4city/resource/Bus_acvbus_Trip_2215_12374" |
class |
|
routeType |
"Bus" |
direction |
"Alamanni 5" .. … .. |
- GPS coordinates to the closer touristic path
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?position=43.7714;11.2540&intersectGeom=true&format=json - GPS coordinates to the garden including them
https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?position=43.7774;11.2384&intersectGeom=true&format=json - GPS coordinates to the closer parking area including them
https://servicemap.snap4city.org/WebAppGrafo/api/v1/?selection=43.7776;11.2497&maxDists=0.5&categories=Car_park&format=json
Example 4: Getting GPS services from TEXT search.
- The following example return an HTML, the same call with JSON at the end can allow you to get the data
- To test click on the link to see a live example: https://servicemap.snap4city.org/WebAppGrafo/api/v1/?search=nave&maxResults=0&lang=en&format=html
- The request has produced on map al the services matching text search “nave” in the Tuscany area.
- the same call with JSON at the end can allow you to get the data in JSON searching for “via calzaioli”
- https://servicemap.snap4city.org/WebAppGrafo/api/v1/location/?search=via%20calzaioli&format=json
Example 5: requesting Suggestions;
Provide suggestion to a specific user for services, events and other entities around a specific position.
https://screcommender.km4city.org/SmartCityRecommender/?action=recommend&user=3043b85d23d6f4879e1765c2c2e431cbc71d393065af06b03486ba4a04642b5b&profile=student&language=en&latitude=43.7727&longitude=11.2532&distance=1&version=1
The JSON allow creating views of suggested data on web and mobile devices.
[{"suggestions":[{"Service":{"features":[{"geometry":{"coordinates":[11.2536,43.7725],"type":"Point"},"id":1,"type":"Feature","properties":{"serviceType":"ShoppingAndService_Newspapers_and_stationery","note":"","city":"FIRENZE","serviceUri":"http:\/\/www.disit.org\/km4city\/resource\/29bc98571a8bf9bcb31ee1c68cd1a227","description":"","description2":"","photos":[],"civic":"2","cap":"50100","avgStars":0.0,"province":"FI","wktGeometry":"","starsCount":0,"fax":"","photoThumbs":[],"photoOrigs":[],"email":"","website":"","address":"VIA DEI BRUNELLESCHI","comments":[],"linkDBpedia":[],"multimedia":"","phone":"","name":"DEL VANGA - PASTORINI","typeLabel":"Newspapers and Stationery"}}],"type":"FeatureCollection"}},{"Service":{"features":[{"geometry":{"coordinates":[11.2535,43.772],"type":"Point"},"id":1,"type":"Feature","properties":{"serviceType":"Entertainment_Discotheque","note":"","city":"FIRENZE","serviceUri":"http:\/\/www.disit.org\/km4city\/resource\/1a250825df03b4a308a4a98a511e39f4","description":"SOCIETA' A RESPONSABILITA' LIMITATA CON UNICO SOCIO - Società di capitale","description2":"","photos":[],"civic":"1","cap":"50100","avgStars":0.0,"province":"FI","wktGeometry":"","starsCount":0,"fax":"","photoThumbs":[],"photoOrigs":[],"email":"","website":"","address":"VIA BRUNELLESCHI","comments":[],"linkDBpedia":[],"multimedia":"","phone":"","name":"STUDIO BALLO E ASSOCIATI S.R.L. IN……………………
Example 6: Providing comments, ranks, images, etc.
- This information is collected into the user profile.
- Comments provided by users can be accessed ad validated using url: https://servicemap.snap4city.org/WebAppGrafo/comments.jsp (accessible only from intranet)
- You can access from your account into the VM of the Development Environment:
- and photos submitted can be validated using url: https://servicemap.snap4city.org/WebAppGrafo/photo.jsp (accessible only from intranet)
- You can access from your account into the VM of the Development Environment:
- The Direct insertion for a POI of an image, comment and ranks from one URI, for Web app is possible. While, the direct access to this feature as MicroApplication is not yet available.
- The Direct insertion for a POI of an image, comment and ranks from one URI, for Web app is possible. While, the direct access to this feature as MicroApplication is not yet available.
- Managing Mobile Device Behaviour.
The Smart City API includes a service for providing from the mobile the movements and Sensor Data of the phone: GPS, accelerator sensors, device kind, date and time, velocity, etc. This information is collected into the user profile. This data is currently saved on a Phoenix/HBase table and it is accessible only internally using Apache Zeppelin (see the following figure).- To test click on the link to see a live example only in the Florence/Tuscany area by using the Km4City mobile Applications.
- For Web app and mobile app view: see F1.2.8-ADDITIONAL--produce on demand hints computed on the basis of the user behaviour (Personal Assistant)
- You can access to your movements log if you have downloaded and installed the mobile app “Firenze dove cosa” and you have accepted the terms of use performing a registration. Once registered you can go on the user profile portal to access at your log and personal data according to the GDPR.
- The resulting data collected from server side as shown to the city users according to the following view.
Activities' timeline of a user behaviour classified by transportation means (draft)