File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import Foundation
1010
1111public extension POIKit {
1212 class GasStation : PCPOIGasStation {
13+ public var brandId : String ?
14+
1315 public var prices : [ PCPOIFuelPrice ] = [ ]
1416 public var currency : String ?
1517
Original file line number Diff line number Diff line change @@ -41,9 +41,21 @@ extension VectorTile_Tile {
4141 private func loadGasStation( for values: [ String : String ] ) -> POIKit . GasStation {
4242 let gasStation = POIKit . GasStation ( )
4343
44- if let id = values [ " id " ] { gasStation. id = id }
45- if let name = values [ " n " ] { gasStation. stationName = name }
46- if let brand = values [ " b " ] { gasStation. brand = brand }
44+ if let id = values [ " id " ] {
45+ gasStation. id = id
46+ }
47+
48+ if let name = values [ " n " ] {
49+ gasStation. stationName = name
50+ }
51+
52+ if let brand = values [ " b " ] {
53+ gasStation. brand = brand
54+ }
55+
56+ if let brandId = values [ " brand_id " ] {
57+ gasStation. brandId = brandId
58+ }
4759
4860 if let openingHoursValue = values [ " oh " ] {
4961 loadOpeningHourRules ( for: gasStation, from: openingHoursValue)
You can’t perform that action at this time.
0 commit comments