Get All Geofences
client_id
string
required
The unique ID associated with your developer project.
oauth_token
string
required
The access token generated via your web application as described here.
v
string
required
The API version date as documented here
``200 200
object
meta
object
code
integer
Defaults to 0
requestId
string
notifications
array of objects
notifications
object
type
string
item
object
item object
response
object
geofences
array of objects
geofences
object
type
string
name
string
id
string
venueIds
array of strings
boundary
object
boundary object
dwellTime
integer
Defaults to 0
``400 400
xxxxxxxxxx
curl --request GET \
--url https://api.foursquare.com/v2/apps/client_id/geofences \
--header 'accept: application/json'
xxxxxxxxxx
{
"meta": {
"code": 200,
"requestId": "5cabcaa01ed2190bebe905bb"
},
"notifications": [
{
"type": "notificationTray",
"item": {
"unreadCount": 0
}
}
],
"response": {
"geofences": [
{
"type": "Venue",
"name": "Favorite Coffee Shop",
"id": "5cabca9b237dee002c1f6510",
"venueIds": [
"4b5901d3f964a520167828e3"
],
"boundary": {
"radius": 100
},
"dwellTime": 5
},
{
"type": "LatLng",
"name": "LatLngFence",
"id": "5cabca9b237dee002c1f6511",
"boundary": {
"center": {
"lat": 40.7001,
"lng": -73.988
},
"radius": 175
},
"dwellTime": 10
},
{
"type": "Polygon",
"name": "SF-ChinaTown",
"id": "5cabca9b237dee002c1f650f",
"boundary": {
"points": [
{
"lat": 37.79315153932501,
"lng": -122.40858972072601
},
{
"lat": 37.790353670610145,
"lng": -122.40798890590668
},
{
"lat": 37.7908666211391,
"lng": -122.40397632122038
},
{
"lat": 37.79366023134501,
"lng": -122.40449666976929
},
{
"lat": 37.79315153932501,
"lng": -122.40858972072601
}
]
},
"dwellTime": 2
}
]
}
}