Visit
This is the main entity of the Movement SDK. It encapsulates all of the information about the users visit.
Constructors
Types
Functions
Gets the type of visit that this is. LocationType.VENUE if its a normal visit, LocationType.HOME or LocationType.WORK when at home / work, or LocationType.NONE if it is a blank visit generated by a network communication error.
The venue object for the Foursquare location the device is at. Will be null if the device is in LocationType.NONE and may be null if the device is at LocationType.HOME, LocationType.WORK depending on your settings in the online Movement SDK console.
Gets the visit id for the current visit. This will be null if this visit was unable to communicate with the Foursquare servers when it was created, for example in cases of no network connectivity. To match up a visit without a visit id and a backfill visit notification, you can match on the timestamp from .getArrival
Gets whether or not the device has left this place
Properties
Gets the location that this visit was created at. Note that this does not correspond directly to the center of the Venue that the visit occurred at but to the location that the user was at when the Movement SDK detected that they were at that place. If you want the actual venue location, you can get that from Venue.location