LocationProblemReport

data class LocationProblemReport(val problemType: LocationProblemType, val description: String? = null, val name: String? = null, val locationCategoryId: Int? = null, val locationTypeId: Int? = null, val addressLine1: String? = null, val addressLine2: String? = null, val city: String? = null, val stateProvince: String? = null, val postalCode: String? = null, val countryCode: String? = null, val latitude: Double? = null, val longitude: Double? = null)

A problem report about an existing location, carrying the member's corrections as a structured patch. Sent with Locations.reportLocationProblem(locationId, report).

Correction fields reuse the nomination field names. A null field means "no correction" and is omitted from the wire; do not pass empty strings - the server rejects them. latitude and longitude must be provided together or not at all. There are no fields for opening hours or contact details: for LocationProblemType.INCORRECT_HOURS and LocationProblemType.INCORRECT_CONTACT_INFO, put the correct values in description. In Swift, pass every argument (nil for no correction).

Constructors

Link copied to clipboard
constructor(problemType: LocationProblemType, description: String? = null, name: String? = null, locationCategoryId: Int? = null, locationTypeId: Int? = null, addressLine1: String? = null, addressLine2: String? = null, city: String? = null, stateProvince: String? = null, postalCode: String? = null, countryCode: String? = null, latitude: Double? = null, longitude: Double? = null)

Properties

Link copied to clipboard

Corrected address line 1, max 255 chars.

Link copied to clipboard

Corrected address line 2, max 255 chars.

Link copied to clipboard
val city: String?

Corrected city, max 100 chars.

Link copied to clipboard

Corrected country code, max 10 chars.

Link copied to clipboard

Free-text detail, max 2000 chars.

Link copied to clipboard

Corrected latitude (-90..90).

Link copied to clipboard

Corrected category id.

Link copied to clipboard

Corrected type id.

Link copied to clipboard

Corrected longitude (-180..180).

Link copied to clipboard
val name: String?

Corrected name, max 255 chars.

Link copied to clipboard

Corrected postal code, max 20 chars.

Link copied to clipboard

What is wrong.

Link copied to clipboard

Corrected state/province, max 100 chars.