package Ġat . sun il son . vehicle Map . data Ċ Ċ import Ġat . sun il son . networking core . constants . Api Keys Ċ import Ġat . sun il son . vehicle Map . data . models . Ch arging St ations Response Ċ import Ġat . sun il son . vehicle Map . data . models . Reach able Area Post Body Ċ import Ġat . sun il son . vehicle Map . data . models . Reach able Area Response Ċ import Ġat . sun il son . vehicle Map . data . models . Weather Response Ċ import Ġretrofit 2 . http . Body Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Query Ċ Ċ internal Ġinterface ĠMaps Service Ġ{ ĊĊĠĠĠ Ġ@ GET (" https :// api . open weather map . org / data / 2 . 5 / weather ? units = metric ") ĊĠĠĠ Ġsuspend Ġfun Ġget Weather Data ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" lat ") Ġlat : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" lon ") Ġlng : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" appid ") ĠapiKey : ĠString ĊĠĠĠ Ġ): ĠWeather Response ĊĊĠĠĠ Ġ@ GET (" https :// api . open charge map . io / v 3 / poi ") ĊĠĠĠ Ġsuspend Ġfun Ġget Ch arging St ations ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" latitude ") Ġlat : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" longitude ") Ġlng : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" distance ") Ġradius : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" distance unit ") Ġdistance Unit : ĠString Ġ= Ġ" KM ", ĊĠĠĠĠĠĠĠ Ġ@ Query (" key ") ĠapiKey : ĠString Ġ= ĠApi Keys . CHAR GING _ API _ KEY ĊĠĠĠ Ġ): ĠList < Ch arging St ations Response > ĊĊĠĠĠ Ġ@ POST (" https :// b emap - my r . ben om ad . com / my ren ault services / jo urney / v 1 . 0 / reachable area ") ĊĠĠĠ Ġsuspend Ġfun Ġget Reach able Area (@ Body Ġbody : ĠRe ach able Area Post Body ): ĠRe ach able Area Response Ċ } Ċ