-
public final class RadarPlaceRepresents a place.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_idprivate final Stringnameprivate final Array<String>categoriesprivate final RadarChainchainprivate final RadarCoordinatelocationprivate final Stringgroupprivate final JSONObjectmetadataprivate final RadarAddressaddress
-
Constructor Summary
Constructors Constructor Description RadarPlace(String _id, String name, Array<String> categories, RadarChain chain, RadarCoordinate location, String group, JSONObject metadata, RadarAddress address)
-
Method Summary
Modifier and Type Method Description final Stringget_id()The Radar ID of the place. final StringgetName()The name of the place. final Array<String>getCategories()The categories of the place. final RadarChaingetChain()The chain of the place, if known. final RadarCoordinategetLocation()The location of the place. final StringgetGroup()The group for the place, if any. final JSONObjectgetMetadata()The metadata for the place, if part of a group. final RadarAddressgetAddress()The address of the place. final JSONObjecttoJson()final BooleanisChain(String slug)Returns a boolean indicating whether the place is part of the specified chain. final BooleanhasCategory(String category)Returns a boolean indicating whether the place has the specified category. -
-
Constructor Detail
-
RadarPlace
RadarPlace(String _id, String name, Array<String> categories, RadarChain chain, RadarCoordinate location, String group, JSONObject metadata, RadarAddress address)
-
-
Method Detail
-
getCategories
final Array<String> getCategories()
-
getChain
final RadarChain getChain()
-
getLocation
final RadarCoordinate getLocation()
The location of the place.
-
getMetadata
final JSONObject getMetadata()
-
getAddress
final RadarAddress getAddress()
The address of the place.
-
toJson
final JSONObject toJson()
-
isChain
final Boolean isChain(String slug)
Returns a boolean indicating whether the place is part of the specified chain.
-
hasCategory
final Boolean hasCategory(String category)
Returns a boolean indicating whether the place has the specified category.
-
-
-
-