Skip to content
Matt Lea edited this page May 3, 2015 · 7 revisions

Welcome to the adam-android-sdk wiki!

developers.schematiacal.com

Use socket.io to call emit an event: update_map

##Payload:

{
  /* The device measuring the signals */
  listener:{
        "alias", "a unique id",
        "lat":"the latitude of the device measurieng"
        "lng":"..."
        "altitude":"..."
        "accuracy":"the accuracy of the measuring".
        "measure_date", "the timestamp of the last location found"
  },
  /* These are the wifi/bluetooth signals that are pulled in */
  pings: [
   "mac":"the_mac_address",
   "rssi":"",
   "frequency":"the frequency",
   "timestamp":"when the measurement was taken",
   "type":"bluetooth/wifi",
   "alias":"the ssid of the device or something of that nature",
   "extra":"whatever else you find"
  ]
}

###Getting Your Location: ####Emit:

find_loc_from_anchors 

#####Payload:

Same as above

####Listen for the response:

target_calced

#####Payload:

{
   pos:{
     lat:1231.00,
     lng:233.00
   },
   debug:{ /* abunch of debug stuff */ }
}

Clone this wiki locally