Show Google place types in selection cards
All checks were successful
Build and deploy Flutter Web / build (push) Successful in 2m11s
All checks were successful
Build and deploy Flutter Web / build (push) Successful in 2m11s
This commit is contained in:
@@ -160,6 +160,8 @@ class MapflowApi {
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
googlePrimaryType
|
||||
googleTypes
|
||||
experiences {
|
||||
id
|
||||
status
|
||||
@@ -184,6 +186,10 @@ class MapflowApi {
|
||||
(place['longitude'] as num).toDouble(),
|
||||
),
|
||||
traits: _traitsFromExperiences(place['experiences'] as List<dynamic>),
|
||||
googlePrimaryType: place['googlePrimaryType'] as String?,
|
||||
googleTypes: (place['googleTypes'] as List<dynamic>)
|
||||
.map((type) => type as String)
|
||||
.toList(),
|
||||
);
|
||||
}).toList();
|
||||
}
|
||||
@@ -201,6 +207,8 @@ class MapflowApi {
|
||||
name
|
||||
latitude
|
||||
longitude
|
||||
googlePrimaryType
|
||||
googleTypes
|
||||
experiences {
|
||||
id
|
||||
status
|
||||
@@ -233,6 +241,10 @@ class MapflowApi {
|
||||
(place['longitude'] as num).toDouble(),
|
||||
),
|
||||
traits: _traitsFromExperiences(place['experiences'] as List<dynamic>),
|
||||
googlePrimaryType: place['googlePrimaryType'] as String?,
|
||||
googleTypes: (place['googleTypes'] as List<dynamic>)
|
||||
.map((type) => type as String)
|
||||
.toList(),
|
||||
);
|
||||
}).toList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user