get_near_accounts
- Inputs
{
"lat": "latitude: float numeric, has dependency to long",
"long": "longitude: float numeric, has dependency to lat"
}
- Errors
{
"invalid_location": "lat or long or both invalid",
"must_login": "user must login"
}
- Extra Description
Returns walls, users and region_walls near user based on his/her location
- Sample
- Url:
- Output:
{
"near_users": [
[
{
"deleted_account": false,
"distance": 190.29945717,
"image_path": "*/*/*/*/*/*****************************/iba1958aa1f2d50faa5d9ca0a41313922.jpg",
"image_server_id": 251,
"last_active_time": 1594459631.36096,
"lat": 46.1,
"long": 36.13,
"name": "user1",
"new": false,
"user_id": 1585980119683600,
"user_name": null
}
],
[
{
"deleted_account": false,
"distance": 534.6964398,
"image_path": "*/*/*/*/*/*******************************/i38b6f1f9641aae488a5430159e205356.jpg",
"image_server_id": 251,
"last_active_time": 1594459759.4200215,
"lat": 35.75442,
"long": 51.4205,
"name": "user2",
"new": false,
"user_id": 1585980120567224,
"user_name": null
}
]
],
"near_walls": [
[
{
"blog_id": "0106a7e7fc0923b3e7562890142a17bbcce9",
"category_id": 27,
"creation_date": 1593774264.4568439,
"description": "Dfghbvcfghhvcxssdghkvvvhkoi",
"disabled": 0,
"distance": 127.97987185,
"features": {
"blog": true,
"group": false,
"profile": true,
"store": false
},
"followers": 58,
"group_id": null,
"image_path": null,
"image_server_id": null,
"invitation_hash": null,
"is_followed": 0,
"last_update_date": 1593774264.548968,
"lat": 46.69538689861997,
"long": 36.42421140441001,
"name": "nature",
"owner_id": 1593772497536459,
"permissions": [],
"place_id": null,
"posts": 1,
"products": null,
"store_id": null,
"type": 3,
"user_name": "naturepage",
"wall_id": -1593774264456848
}
],
[
{
"blog_id": null,
"category_id": 1,
"creation_date": 1593242122.4268022,
"description": "",
"disabled": 0,
"distance": 149.57024251,
"features": {
"blog": false,
"group": true,
"profile": true,
"store": false
},
"followers": 4,
"group_id": "0106f11659f5de4f922a8f761a0a3b2d0cc8",
"image_path": null,
"image_server_id": null,
"invitation_hash": null,
"is_followed": 0,
"last_update_date": null,
"lat": 46.69729026029478,
"long": 36.42232418060302,
"name": "word",
"owner_id": 1583568569540056,
"permissions": [],
"place_id": null,
"posts": 0,
"products": null,
"store_id": null,
"type": 2,
"user_name": "874102233",
"wall_id": -1593242122426813
}
]
],
"region_wall": {
"category_id": 52,
"creation_date": 1558863184.4372633,
"description": "description",
"disabled": 0,
"distance": 0,
"features": {
"blog": false,
"group": true,
"profile": false,
"store": false
},
"followers": 1,
"group_id": "9999760020ee00e1e0bc66da8e6973d7017a",
"group_last_update_date": null,
"group_posts": 0,
"image_path": null,
"image_server_id": null,
"invitation_hash": "233f27c1bad574f3f45cc732073425cd",
"is_followed": 0,
"lat": 46.11,
"long": 36.11,
"name": "\u043a\u0430\u043c\u0435\u043d\u044c, \u0423\u043a\u0440\u0430\u0457\u043d\u0430",
"permissions": null,
"place_id": 1064826,
"products": 0,
"store_id": null,
"type": 2,
"user_name": "wall_6633d79e735a3de976dc2927cfd5977d",
"wall_id": -1000638
},
"status": "success",
"time": 1547536575.822216
}