package Ġcom . n obody s apps . gre ent astic . networking Ċ Ċ import Ġcom . n obody s apps . gre ent astic . networking . model . Vehicle Aggregate Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠApi Service Ġ{ ĊĠĠĠ Ġ@ GET (" query _ autocomplete ") ĊĠĠĠ Ġfun Ġget Auto Complete (@ Query (" search _ string ") Ġsearch String : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Query (" user _ location ") Ġuser Location : ĠString ?= null ): ĠSingle < List < String >> ĊĊĠĠĠ Ġ@ GET (" query _ directions ") ĊĠĠĠ Ġsuspend Ġfun Ġget Veh icles (@ Query (" source ") Ġsource : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Query (" destination ") Ġdestination : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Query (" car _ type ") Ġcar Type : ĠString ?= null , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Query (" car _ type ") Ġweights : ĠList < String >? = null ): ĠVehicle Aggregate Ċ } Ċ Ċ // " https :// clean - com mut er . app spot . com / query _ directions ? source =\ ( source _) & destination =\ ( destination )& car _ type =\ ( Ġcar _ type )& weights =\ ( time ), \( emis ), \( cost ), \( cal s ), \( to xc ) Ċ // Ġweights : Ġ 0 . 0 3 , 0 . 1 , 0 , 0 , 0 Ċ // https :// clean - com mut er . app spot . com / query _ autocomplete ? user _ location =\ ( own Coords )& search _ string =\ ( fr ank f ur Ċ // Ġt )