this is the request format
https://roads.googleapis.com/v1/nearestRoads?parameters&key=YOUR_API_KEY
here i need to pass latitude and longitude as parameter points, something like this
https://roads.googleapis.com/v1/nearestRoads?points=60.170880,24.942795|60.170879,24.942796|60.170877,24.942796&key=YOUR_API_KEY
i tried to pass it like
@POST("nearestRoads?points&key=my_api_key")
Call<SnappedPoints> getNearestRoad(@FieldMap Double map);
by calling
Call<SnappedPoints> call = retrofitClientMap.getNearestRoad(stringStringMap.put(latLng3.latitude,latLng3.longitude));
but it shows an illegal exception , can any one help have an idea to solve it