Commit 0647fc9a authored by Deployer's avatar Deployer

Adds alternate name; internal changes for future releases.

parent 8d840850
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'CedarMaps'
s.version = '3.0.1'
s.version = '3.0.2'
s.summary = 'CedarMaps iOS SDK'
# This description is used to generate tags and improve search results.
......@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
s.platform = :ios, '9.0'
s.requires_arc = true
s.static_framework = true
s.static_framework = false
s.cocoapods_version = '>= 1.4.0'
s.source_files = 'CedarMaps/Classes/**/*'
......
......@@ -43,6 +43,10 @@
*/
@property (nonatomic, strong, nonnull) NSString *name;
/**
Alternate name of the result. e.g Jordan, Africa
*/
@property (nonatomic, strong, nonnull) NSString *alternateName;
/**
English name of the result.
......@@ -55,6 +59,16 @@
*/
@property (nonatomic, strong, nonnull) NSString *type;
/**
Category of the result in case its type is poi.
*/
@property (nonatomic, strong, nullable) NSString *category;
/**
Kikojas slug of the result in case its type is poi.
*/
@property (nonatomic, strong, nullable) NSString *slug;
/**
A simple generated address from components field.
......@@ -85,5 +99,6 @@ typedef NS_OPTIONS(NSUInteger, CSPlacemarkType) {
CSPlacemarkTypeExpressway = 1 << 3,
CSPlacemarkTypeBoulevard = 1 << 4,
CSPlacemarkTypeLocality = 1 << 5,
CSPlacemarkTypePOI = 1 << 6
};
NSString* _Nonnull stringValueForPlacemarkType(CSPlacemarkType type);
......@@ -13,9 +13,12 @@
return @{
@"identifier": @"id",
@"name": @"name",
@"alternateName": @"alt_name",
@"nameEn": @"name_en",
@"type": @"type",
@"region": @"location",
@"category": @"category",
@"slug": @"slug",
@"address": @"address",
@"components": @"components"
};
......@@ -64,6 +67,9 @@ NSString* stringValueForPlacemarkType(CSPlacemarkType type) {
if (type & CSPlacemarkTypeRoundabout) {
result = [result stringByAppendingString:@"roundabout,"];
}
if (type & CSPlacemarkTypePOI) {
result = [result stringByAppendingString:@"poi,"];
}
if (result.length > 1) {
result = [result substringToIndex:result.length - 1];
}
......
PODS:
- CedarMaps (3.0.0):
- CedarMaps (3.0.1):
- Mantle (~> 2.1)
- Mapbox-iOS-SDK (~> 4.0)
- Mantle (2.1.0):
- Mantle/extobjc (= 2.1.0)
- Mantle/extobjc (2.1.0)
- Mapbox-iOS-SDK (4.0.0)
- Mapbox-iOS-SDK (4.2.0)
DEPENDENCIES:
- CedarMaps (from `../`)
......@@ -20,10 +20,10 @@ EXTERNAL SOURCES:
:path: "../"
SPEC CHECKSUMS:
CedarMaps: d8d7b32c66674c469672bc42d761a8bee2ab3d42
CedarMaps: a1d13b203c9b7ae324625525ec2a4b9102771fc3
Mantle: 2fa750afa478cd625a94230fbf1c13462f29395b
Mapbox-iOS-SDK: 271754e96eb4434ba1b0a8c68432e1ea26fe9841
Mapbox-iOS-SDK: 706d52e3ad095e16944d9643f37d5a97627f6c19
PODFILE CHECKSUM: ad43b9956cf1f58bff64834a5e21f42f322108fa
COCOAPODS: 1.5.2
COCOAPODS: 1.5.3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment