Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

layer/users/:id

Contents

URL

https://api.geoloqi.com/1/layer/users/:id

Description

Get a list of users who are inside any places on the layer.

Supported Request Methods

GET

Example Request

https://api.geoloqi.com/1/layer/users/MMM

Response

The response contains two objects, "users" and "places".

The "users" object contains a list of all users currently at some location on the layer. Each user contains an array with place IDs of any places they are currently inside.

The "places" object contains a list of all the places on the layer. Each place contains an array with user IDs of any users that are currently there.

{
   "users":{
      "200G":{
         "user_id":"200G",
         "username":"_9q8RX1hZ331pVpUj",
         "name":"Amber Case",
         "display_name":"Amber Case",
         "bio":"Co-founder, Geoloqi. UX Designer",
         "website":"http:\/\/geoloqi.com",
         "timezone":"America\/Los_Angeles",
         "twitter":"caseorganic",
         "profile_image":"http:\/\/a0.twimg.com\/profile_images\/116264220\/kk-caseorganic-48px_normal.jpg",
         "is_anonymous":0,
         "has_custom_username":1,
         "has_push_token":0,
         "public_location":0,
         "public_geonotes":1,
         "public_geonote_email":1,
         "timezone_offset":"-0700",
         "extra":{
         },
         "inside":[
            {
               "place_id":"1DT",
               "date":"2010-11-27T21:09:32-08:00",
               "date_ts":1290920972
            },
            {
               "place_id":"1Cw",
               "date":"2010-11-27T21:09:32-08:00",
               "date_ts":1290920972
            }
         ]
      },
      "Kn":{
         "user_id":"Kn",
         "username":"_9q8RX1hZG6X1pVpUj",
         "name":"",
         "display_name":"Anonymous",
         "bio":"",
         "website":"",
         "timezone":"UTC",
         "twitter":false,
         "profile_image":"https:\/\/s3.amazonaws.com\/geoloqi\/blank-profile-image-orange.png",
         "is_anonymous":1,
         "has_custom_username":0,
         "has_push_token":0,
         "public_location":0,
         "public_geonotes":1,
         "public_geonote_email":1,
         "timezone_offset":"+0000",
         "extra":{
         },
         "inside":[
            {
               "place_id":"1B4",
               "date":"2012-02-13T22:34:13-08:00",
               "date_ts":1329201253
            }
         ]
      }
   },
   "places":{
      "1DT":{
         "place":{
            "place_id":"1DT",
            "name":"Home",
            "latitude":45.511521414745,
            "longitude":-122.64247257385,
            "radius":300,
            "display_name":"Home",
            "active":1,
            "extra":{
            },
            "description":"",
            "visits":12
         },
         "users_inside":[
            {
               "user_id":"200G",
               "date":"2010-11-27T21:09:32-08:00",
               "date_ts":1290920972
            }
         ]
      },
      "1Cw":{
         "place":{
            "place_id":"1Cw",
            "name":"Work",
            "latitude":45.503707816384,
            "longitude":-122.62269973755,
            "radius":300,
            "display_name":"Work",
            "active":1,
            "extra":{
            },
            "description":"",
            "visits":17
         },
         "users_inside":[
            {
               "user_id":"2",
               "date":"2010-11-27T21:09:32-08:00",
               "date_ts":1290920972
            }
         ]
      },
      "1B4":{
         "place":{
            "place_id":"1B4",
            "name":"San Francisco, CA",
            "latitude":37.754972691905,
            "longitude":-122.44537353516,
            "radius":8422,
            "display_name":"San Francisco, CA",
            "active":1,
            "extra":{
            },
            "description":""
         },
         "users_inside":[
            {
               "user_id":"Kn",
               "date":"2012-02-13T22:34:13-08:00",
               "date_ts":1329201253
            }
         ]
      }
   }
}