DiscoveryPlaceResponse

data class DiscoveryPlaceResponse(var area: DiscoveryPlaceResponse.Area? = null, var address: DiscoveryPlaceResponse.Address? = null, var city: DiscoveryPlaceResponse.City? = null, var state: DiscoveryPlaceResponse.State? = null, var country: DiscoveryPlaceResponse.Country? = null, var postalCode: String? = null, var location: DiscoveryPlaceResponse.Location? = null, var name: String? = null)

Represents a place response from the Discovery API.

Holds location details such as address, city, and coordinates.

Constructors

Link copied to clipboard
constructor(area: DiscoveryPlaceResponse.Area? = null, address: DiscoveryPlaceResponse.Address? = null, city: DiscoveryPlaceResponse.City? = null, state: DiscoveryPlaceResponse.State? = null, country: DiscoveryPlaceResponse.Country? = null, postalCode: String? = null, location: DiscoveryPlaceResponse.Location? = null, name: String? = null)

Types

Link copied to clipboard
data class Address(var line1: String? = null, var line2: String? = null, var line3: String? = null)

Represents address details in a place response.

Link copied to clipboard
data class Area(val name: String? = null)

Represents area details in a place response.

Link copied to clipboard
data class City(var name: String? = null)

Represents city details in a place response.

Link copied to clipboard
data class Country(var countryCode: String? = null, var name: String? = null)

Represents country details in a place response.

Link copied to clipboard
data class Location(var longitude: String? = null, var latitude: String? = null)

Represents geographic coordinates in a place挿

Link copied to clipboard
data class State(var stateCode: String? = null, var name: String? = null)

Represents state details in a place response.

Properties

Link copied to clipboard

The address details, if available.

Link copied to clipboard

The area details, if available.

Link copied to clipboard

The city details, if available.

Link copied to clipboard

The country details, if available.

Link copied to clipboard

The geographic coordinates, if available.

Link copied to clipboard
var name: String?

The place name, if available.

Link copied to clipboard

The postal code, if available.

Link copied to clipboard

The state details, if available.