Skip to content

Risposta ad invio coordinate Teoria

Paolo Fisco edited this page Oct 10, 2016 · 2 revisions

Il bot è in grado di memorizzare l'ultima posizione inviata dall'utente e rispondere con il menu con ID=POSITION.

{
    "ID":"HOME",
    "Text":"Benvenuto nel Menu del BOT, Invia la tua posizione"
},
{
  "ID":"LOCATION",
  "Text":"Seleziona Categoria",
  "Button":[
           {"Text":"Defibrillatore","ID":"DAE"},
           {"Text":"Indietro","ID":"HOME"}
  ]      
},
{
"ID": "DAE",
"POI": 
  {
    "Text":"Seleziona DAE",
    "MaxResult": 3,
    "MaxDistance": 1000,
    "SendDistance":true,
    "SendMap":true,
    "ListPOI": 
     [
       {
         "ID": "eb101c3e-bd03-4515-a8be-14ee27a8a235",
         "Text": "SOCIETA’ DI SCHERMA",
         "Latitude": 45.626687,
         "Longitude": 9.205079
       },
       {
         "ID": "91754e21-1c89-4f70-8ae0-9d61534b58e2",
         "Text": "CENTRO RICREATIVO \" IL GIRASOLE",
         "Latitude": 45.618636,
         "Longitude": 9.210455
       },
       {
         "ID": "77be0646-d8f6-45e0-9fd3-b5eb7fb270a0",
         "Text": "PARROCCHIA / ORATORIO S.GIOVANNI BATTISTA",
         "Latitude": 45.618451,
         "Longitude": 9.193961
       }
     ]         
  } 
 },

Clone this wiki locally