LocationProblemType

What is wrong with a location, on the canonical numeric 0-5 wire contract - the LocationProblemReport.problemType a member picks when reporting a problem with Locations.reportLocationProblem.

In Swift the values read .incorrectAddress, .permanentlyClosed, .incorrectHours, .incorrectContactInfo, .duplicateLocation and .other.

Entries

Link copied to clipboard

The address or the map position is wrong. Send the corrected address fields, or LocationProblemReport.latitude and LocationProblemReport.longitude together.

Link copied to clipboard

The location has closed for good. No corrections are needed.

Link copied to clipboard

The opening hours are wrong. A report has no hours fields - put the correct hours in LocationProblemReport.description.

Link copied to clipboard

The phone number, email or website is wrong. A report has no contact fields - put the correct details in LocationProblemReport.description.

Link copied to clipboard

The location is listed more than once.

Link copied to clipboard

Anything else; describe it in LocationProblemReport.description.

Properties

Link copied to clipboard
val code: Int

The wire value for this problem type.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.