PlaceVisit

@JsonClass(generateAdapter = true)
data class PlaceVisit(@Json(name = "location") val location: Location, @Json(name = "centerLatE7") val centerLatE7: Int?, @Json(name = "centerLngE7") val centerLngE7: Int?, @Json(name = "duration") val duration: Duration?, @Json(name = "placeConfidence") val placeConfidence: PlaceConfidence?, @Json(name = "visitConfidence") val visitConfidence: Int?, @Json(name = "locationConfidence") val locationConfidence: Int?, @Json(name = "otherCandidateLocations") val otherCandidateLocations: List<Location> = emptyList(), @Json(name = "childVisits") val childVisits: List<PlaceVisit>?, @Json(name = "sectionId") val sectionId: String?, @Json(name = "simplifiedRawPath") val simplifiedRawPath: SimplifiedRawPath?, @Json(name = "placeVisitLevel") val placeVisitLevel: Int?, @Json(name = "editConfirmationStatus") val editConfirmationStatus: String, @Json(name = "editActionMetadata") val editActionMetadata: EditActionMetadata?, @Json(name = "lastEditedTimestamp") val lastEditedTimestamp: ZonedDateTime?, @Json(name = "placeVisitType") val placeVisitType: String?, @Json(name = "placeVisitImportance") val placeVisitImportance: PlaceVisitImportance?, @Json(name = "locationAssertionType") val locationAssertionType: LocationAssertionType?, @Json(name = "checkin") val checkin: CheckIn?)

Constructors

Link copied to clipboard
constructor(@Json(name = "location") location: Location, @Json(name = "centerLatE7") centerLatE7: Int?, @Json(name = "centerLngE7") centerLngE7: Int?, @Json(name = "duration") duration: Duration?, @Json(name = "placeConfidence") placeConfidence: PlaceConfidence?, @Json(name = "visitConfidence") visitConfidence: Int?, @Json(name = "locationConfidence") locationConfidence: Int?, @Json(name = "otherCandidateLocations") otherCandidateLocations: List<Location> = emptyList(), @Json(name = "childVisits") childVisits: List<PlaceVisit>?, @Json(name = "sectionId") sectionId: String?, @Json(name = "simplifiedRawPath") simplifiedRawPath: SimplifiedRawPath?, @Json(name = "placeVisitLevel") placeVisitLevel: Int?, @Json(name = "editConfirmationStatus") editConfirmationStatus: String, @Json(name = "editActionMetadata") editActionMetadata: EditActionMetadata?, @Json(name = "lastEditedTimestamp") lastEditedTimestamp: ZonedDateTime?, @Json(name = "placeVisitType") placeVisitType: String?, @Json(name = "placeVisitImportance") placeVisitImportance: PlaceVisitImportance?, @Json(name = "locationAssertionType") locationAssertionType: LocationAssertionType?, @Json(name = "checkin") checkin: CheckIn?)

Properties

Link copied to clipboard

Latitude coordinate of the location. Degrees multiplied by 10^7 and rounded to the nearest integer, in the range -900000000 to +900000000 (divide value by 10^7 for the usual range -90° to +90°). Example: 414216106

Link copied to clipboard

Longitude coordinate of the location. Degrees multiplied by 10^7 and rounded to the nearest integer, in the range -1800000000 to +1800000000 (divide value by 10^7 for the usual range -180° to +180°). Example: 21684775

Link copied to clipboard

Checkin for this place visit

Link copied to clipboard

Child visits for this place visit

Link copied to clipboard

Duration of the place visit

Link copied to clipboard

Edit-Action Metadata for this place visit Example: EditActionMetadata(lastEditedTimestamp = "2022-03-06T14:13:11.092Z")

Link copied to clipboard

Whether the user has manually edited the place visit. Can be NOT_CONFIRMED or CONFIRMED. Example: "CONFIRMED"

Link copied to clipboard

Last-Edited Timestamp for this place visit Example: "2022-03-06T14:13:11.092Z"

Link copied to clipboard

Location of the place Example: Location(latitudeE7 = 414216106, longitudeE7 = 21684775, placeId = "ChIJk_s92NyipBIRUMnDG8Kq2Js")

Link copied to clipboard

Location Assertion Type for this place visit Example: "AREA"

Link copied to clipboard

Location confidence for this place visit Example: 71

Link copied to clipboard

Other candidate locations for this place visit

Link copied to clipboard

Categorized confidence for this place visit. One of: LOW_CONFIDENCE, MEDIUM_CONFIDENCE, HIGH_CONFIDENCE or USER_CONFIRMED. Example: "HIGH_CONFIDENCE"

Link copied to clipboard

Place Visit Importance for this place visit. One of MAIN or TRANSITIONAL. Example: "MAIN"

Link copied to clipboard

Level (depth) of this place visit. This value increases by 1 with each recursive access to a childVisits entry. Example: 1

Link copied to clipboard

Place Visit Type for this place visit. Can be SINGLE_PLACE. Example: "SINGLE_PLACE"

Link copied to clipboard

Section ID for this place visit Example: "section123"

Link copied to clipboard

Simplified raw path for this place visit.

Link copied to clipboard

Visit confidence for this place visit Example: 95