Sha256: f091aeeab0dc910dd2344db7be2eacfa5ca73e63464ab82a4c923a0b2ecc259c

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

/*
 * YMKTrafficInformer.h
 *
 * This file is a part of the Yandex Map Kit.
 *
 * Version for iOS © 2011 YANDEX
 * 
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://legal.yandex.ru/mapkit/
 */


#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

/**
 Traffic light colors representing the levels of congestion on the Yandex scale.
 */
typedef enum {
	YMKTrafficInformerColorNo,      /**< there is no traffic data available */
	YMKTrafficInformerColorRed,     /**< red color, the level of congestion is high */
	YMKTrafficInformerColorYellow,  /**< yellow color, the level of congestion is moderate */
	YMKTrafficInformerColorGreen    /**< green color, the level of congestion is low */
} YMKTrafficInformerColor;

/**
 The Yandex traffic congestion informer.
 */
@interface YMKTrafficInformer : NSObject {
@private
	CLLocationCoordinate2D _coord;
	NSInteger _value;
	YMKTrafficInformerColor _color;
	NSDate * _expirationDate;
}

/**
 The geographical coordinate for which the traffic jam data is valid.
 */
@property (nonatomic, assign) CLLocationCoordinate2D coord;

/**
 * The congestion level (1-10).
 */
@property (nonatomic, assign) NSInteger value;

/**
 The Yandex traffic light color (unknown, green, yellow, red).
 @see YMKTrafficInformerColor
 */
@property (nonatomic, assign) YMKTrafficInformerColor color;

/**
 * The date when the traffic jam data expires.
 */
@property (nonatomic, retain) NSDate * expirationDate;

@end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-yandexmapkit-0.0.1 YandexMapKit/Headers/YMKTrafficInformer.h