I want to display static map in my application, when i tried to get static image by using this URL
It is working fine in the browser but in my app when i use this link it results in illegal argument exception at index 61 (index 61 is the first |
character).
So i have searched for this error and i found something to use like this
URL = "http://maps.google.com/maps/api/staticmap?"
+URLEncoder.encode("path=color:0x0000ff|weight:5|40.737102,-73.990318|40.755823,-73.986397&zoom=14&size=400x400&sensor=false", "UTF-8");
but it shows the URL with % in place of |
and results in error
The Google Maps API server rejected your request. Invalid request. Missing the 'size' parameter.
How can i solve this issue?