Types for Google places api
{ addressComponents : List AddressComponent
, adrAddress : String
, formattedAddress : String
, geometry : Geometry
, icon : String
, id : String
, name : String
, placeId : String
, reference : String
, scope : String
, types : List String
, url : String
, utcOffset : Basics.Int
, vicinity : Maybe String
}
Type alias for PlaceResult
{ lat : Basics.Float
, lng : Basics.Float
}
Type alias for LatLng coordinates
{ south : Basics.Float
, west : Basics.Float
, north : Basics.Float
, east : Basics.Float
}
Type alias for LatLngBouns
{ long_name : String
, short_name : String
, types : List ComponentType
}
Type alias for GeocoderAddressComponent
{ location : LatLng
, viewport : LatLngBounds
}
Type alias for PlaceGeometry
Types for address component
decoder : Json.Decode.Decoder Place
Decoder for objects of type PlaceResult
getComponentName : Place -> ComponentType -> Maybe String
Helper function to name by components type.