I'm using the google maps API in my project but I'm having a little problem.
To mount the URL I'm using a URI that concatenates with buildUpon so with the example below.
Uri uriBase = Uri.parse(urlBase).buildUpon()
.appendQueryParameter(language, "pt-BR")
.appendQueryParameter(units, "metric")
.appendQueryParameter(origins, "Washington,DC")
.appendQueryParameter(destinations, "New+York+City,NY")
.appendQueryParameter(key, GOOGLE_API_KEY)
.build();
So long, the problem is that with special characters like "," and "". They are converted to their form url encoding
getting something like% 2C or% 2B, which may end up preventing Google maps from identifying the address returning empty json, I wonder if there is a way to prevent this conversion.