user.entered_geofence.
Context is the user’s current state. Events are the transitions between states. Read context to decide what to show now, and use events to trigger something once.
A field appears on the user only when its context type is turned on for the project and has a value for that location. You turn event types on or off on the Settings page. Places, Regions, and Beacons depend on your plan.
Geofences
A geofence is a location you define: a store, a venue, a delivery zone, or a job site. It is a circle, a polygon, or an isochrone, which is the area within a given travel time of a point. You identify each geofence with atag (a group, such as store) and an externalId (your own ID, such as store-42).
The user’s geofences field lists every geofence that contains the user’s current location:
user.entered_geofence, user.exited_geofence, and user.dwelled_in_geofence when you turn it on for the project and set a dwellThreshold on the geofence.
See Create geofences.
Places
A place is a point of interest from Radar’s place dataset, such as a coffee shop, an airport, or a stadium. A place has one or more categories, and it can belong to a chain. Use geofences for locations you operate, and Places for locations you don’t. For the supported values, see the lists of place chains and place categories. The user’splace field is the one place the user is at, or is absent when there is none:
chain.externalId and chain.metadata are values you map to a chain in settings.
Events: user.entered_place, when the user stops at a place that matches your chains and categories, user.exited_place, and user.nearby_place_chain, only when nearby place chains are enabled for your project by Radar.
See Enable Places.
Regions
A region is an administrative area from Radar’s boundary dataset. You don’t create anything.
Each region field has a
code and a name:
user.entered_region_country and user.exited_region_country, and the same pair for state, dma, and postal_code.
On a verified location check, country and state also carry the jurisdiction result for that check. See Country and state fields.
Beacons
A beacon is a Bluetooth device you install and register with Radar. Beacons work like small geofences for areas that GPS can’t resolve: a floor, a counter, a drive-thru lane, or a parking space. Your app turns on beacon ranging in a tracking call on iOS or Android. The web SDK doesn’t range beacons. The user’sbeacons field lists the registered beacons the device heard during the most recent update:
user.entered_beacon and user.exited_beacon.
See Track indoor location with beacons.
Fraud
Fraud context reports whether Radar can trust the location and the device behind it. Radar checks for a mocked or spoofed location, movement that is too far too fast, a known proxy or VPN, screen sharing or remote control, a compromised device or app, and a location that is too inaccurate to rely on. Your app requests the checks withRadar.trackVerified().
Fraud detection and verified location checks are available on the Enterprise plan.
fraud field has one boolean flag for each check, the overall result in passed, and the last time each flag was raised:
verified is true when the update came from a verified location check. passed is true when all fraud checks passed. blocked and bypassed report that a block or bypass rule matched, and they override the other flags.
Events: none. Read passed and failureReasons in the geolocation token, and make eligibility decisions on your backend from a validated token, not from flags read in the app.
See Fraud fields.
Trips
A trip is one journey by a user to a destination, such as a customer driving to pick up an order. While a trip is active, Radar calculates an ETA from each location update and moves the trip through its statuses. The user’strip field is the active trip. It is present while the trip’s status is started, approaching, or arrived:
eta.duration is in minutes and eta.distance is in meters.
Events: user.started_trip, user.updated_trip, user.approaching_trip_destination, user.arrived_at_trip_destination, user.stopped_trip, and user.arrived_at_wrong_trip_destination when you turn it on for the project.
See Track pickups, deliveries, and workers.
User insights
User insights use a user’s recurring stopped locations to infer likely home and work areas, then report whether the user is at home, at work, traveling, or commuting.User insights must be enabled for your project. Contact your Radar account team.
locationInsights field has one boolean for each state. Radar omits the field until it has enough location history to infer a home or work area:
user.entered_home and user.exited_home, user.entered_work and user.exited_work, user.started_traveling and user.stopped_traveling, and user.started_commuting and user.stopped_commuting.
See Location insights.