GRPlaceTypesManager
class GRPlaceTypesManager
Undocumented
-
Undocumented
Declaration
Swift
static var shared = GRPlaceTypesManager()
-
Undocumented
Declaration
Swift
var allSubTypes : [Int : [String]] = [0 : ["cafe","restaurant","bakery","food"], 1: ["university","hospital","bank","beauty_salon","book_store","gym","night_club","shoe_store","spa","store","dentist","bar","campground","school","lodging"], 2: ["shopping_mall","natural_feature","museum","park","amusement_park","airport","zoo","aquarium","art_gallery","library","subway_station","rv_park","stadium","train_station","transit_station"]]
-
same as above property but data type is different
Declaration
Swift
var allSubTypesByMainType : [Int : [GRPlaceSubType]] = [0 : [GRPlaceSubType.Restaurant, GRPlaceSubType.Cafe,GRPlaceSubType.Bakery,GRPlaceSubType.Food], 1: [GRPlaceSubType.University,GRPlaceSubType.Hospital,GRPlaceSubType.Bank,GRPlaceSubType.BeautySalon,GRPlaceSubType.BookStore,GRPlaceSubType.Gym,GRPlaceSubType.NightClub,GRPlaceSubType.ShoeStore,GRPlaceSubType.Spa,GRPlaceSubType.Store,GRPlaceSubType.Dentist,GRPlaceSubType.Bar,GRPlaceSubType.Campground,GRPlaceSubType.School,GRPlaceSubType.Lodging], 2: [GRPlaceSubType.ShoppingMall,GRPlaceSubType.NaturalFeature,GRPlaceSubType.Museum,GRPlaceSubType.Park,GRPlaceSubType.AmusementPark,GRPlaceSubType.Airport,GRPlaceSubType.Zoo,GRPlaceSubType.Aquarium,GRPlaceSubType.ArtGallery,GRPlaceSubType.Library,GRPlaceSubType.SubwayStation,GRPlaceSubType.RvPark,GRPlaceSubType.Stadium,GRPlaceSubType.TrainStation,GRPlaceSubType.TransitStation]]
-
it will return the first matching type of place with
allTypes
propertyDeclaration
Swift
func getTypeOfPlace(place : GRPlace) -> GRPlaceMainTypes?