package Ġcom . up sa . m imo . places finder . utils Ċ Ċ import Ġandroid . location . Location Ċ import Ġandroid . widget . ImageView Ċ import Ġandroid . widget . Rating Bar Ċ import Ġandroid . widget . TextView Ċ import Ġcom . bump tech . glide . G lide Ċ import Ġcom . up sa . m imo . places finder . model . Place Ċ Ċ fun ĠLocation . getLocation QueryParam (): ĠString Ġ{ ĊĠĠĠ Ġval Ġsb Ġ= ĠStringBuilder () ĊĠĠĠ Ġsb . append ( this . latitude ). append ("," ). append ( this . longitude ) ĊĠĠĠ Ġreturn Ġsb . toString () Ċ } Ċ Ċ fun ĠImageView . set Static Map Image ( place : ĠPlace ) Ġ{ ĊĠĠĠ ĠG lide ĊĠĠĠĠĠĠĠ Ġ. with ( this . context ) ĊĠĠĠĠĠĠĠ Ġ. load (" https :// maps . googleapis . com / maps / api / static map ? center =${ place . geometry . location . lat }% 2 c % 2 0 ${ place . geometry . location . lng }& zoom = 1 6 & size = 4 0 0 x 4 0 0 & scale = 2 x 4 0 0 & markers = color : blue % 7 C ${ place . geometry . location . lat }, ${ place . geometry . location . lng }& key = AI za Sy AN Hd Y 3 B xr - Oc 6 _ Fj Xp ZT sk CX z 6 5 u V _ ga E ") ĊĠĠĠĠĠĠĠ Ġ. center Crop () ĊĠĠĠĠĠĠĠ Ġ. into ( this ) Ċ } Ċ Ċ fun ĠRating Bar . set Place Rating Value ( progress Value : ĠFloat ) Ġ{ ĊĠĠĠ Ġwith ( this ) Ġ{ ĊĠĠĠĠĠĠĠ Ġprogress Ġ= Ġprogress Value . toInt () ĊĠĠĠĠĠĠĠ ĠsetIs Indicator ( true ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠTextView . set Total Reviews ( string Total Reviews : ĠString ) Ġ{ ĊĠĠĠ Ġtext Ġ= Ġstring Total Reviews Ċ } ĊĊ