List all the geofences of the group

Purpose: Use this API to list all the available geofences that are associated with a specific group. You must specify the ID of the group for which you want to view the associated geofences. Refer to the Path and Query parameters section for more info.

require 'uri'
require 'net/http'

url = URI('https://api.gomotive.com/v1/groups/<id>/geofences')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"

response = http.request(request)
puts response.read_body

Response Parameters

Geofence

  • Type: Object
  • Description: Details of a specific geofence.

id

  • Type: Integer
  • Description: Unique identifier for the geofence.

name

  • Type: String
  • Description: Name of the geofence.

category

  • Type: String
  • Description: Category of the geofence, such as Fuel Station.

status

  • Type: String
  • Description: Current status of the geofence (e.g., active).

description

  • Type: String
  • Description: Description or notes for the geofence.

address

  • Type: String
  • Description: Physical address of the geofence.

location_points

  • Type: Array of Objects
  • Description: List of latitude and longitude points defining the geofence boundary.

lat

  • Type: Float
  • Description: Latitude of a location point.

lon

  • Type: Float
  • Description: Longitude of a location point.

Path Params
int32
required

Specify the ID of the group for which you want to view the geofences.

Query Params
date

Specify a date after which you want to view the associated geofences.

int32
Defaults to 25

Denotes the number of records per page.

int32
Defaults to 1

Denotes the current page number.

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json