CalStoreWeatherCity Class Reference
Inherits from | CalStoreObject : NSObject |
---|---|
Declared in | CalStoreWeatherCity.h |
Overview
Holds information about a city that has a weather calendar available.
To get a list of cities for a specific region, use the CalStoreWeatherCityWithinRegionRequest class.
MapKit
The CalStoreWeatherCity class conforms to the MKMapAnnotation protocol, so objects of this class can directly be used as annotations inside an MKMapView.
Getting Information
name
The name of the city, localized.
@property (nonatomic, readonly) NSString *name
Declared In
CalStoreWeatherCity.h
coordinate
The GPS coordinates of the city.
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate
Declared In
CalStoreWeatherCity.h
identifier
The unique identifier of the city.
@property (nonatomic, readonly) NSString *identifier
Declared In
CalStoreWeatherCity.h
isCluster
If YES, this city is a cluster of multiple other cities/places. The user should be able to zoom in the map to reveal more cities.
@property (nonatomic, readonly, getter=isCluster) BOOL isCluster
Declared In
CalStoreWeatherCity.h
Comparing
– isEqualToWeatherCity:
Compares this object for equality to another instance of CalStoreWeatherCity.
- (BOOL)isEqualToWeatherCity:(CalStoreWeatherCity *)other
Parameters
other |
the other instance to compare against. |
---|
Return Value
YES is this object is equal to the other city, NO otherwise.
Declared In
CalStoreWeatherCity.h
MKMapAnnotation Methods
title
Title of this object, for MKMapAnnotation conformance. Returns the same value as the name property.
@property (nonatomic, readonly, copy) NSString *title
Discussion
Note: CalStoreWeatherCity objects conform to the MKMapAnnotation protocol, so they can be used directly as annotations in an MKMapView.
Declared In
CalStoreWeatherCity.h