[Scilab-users] Google Static Maps using IPCV imread function - help

Tan Chin Luh chinluh at tritytech.com
Mon Oct 30 01:39:01 CET 2017


Hi Dave,

it is possible, try this:
url = 
"https://maps.googleapis.com/maps/api/staticmap?center=40.714%2c%20-73.998&zoom=12&size=400x400&key=your_API_key"
fn = getURL(url);
S imread(fn);
imshow(S);


Hope this helps.

p/s: imread suppose to be able to read in the image direct from the web 
link, but due to a stupid mistake, it only works for http but not https 
for now, will fixed it.

rgds,
CL




On 30/10/2017 6:36 AM, David Brant wrote:
>
> Hi
>
> Is it possible to access and plot google static maps in scilab using 
> the IMREAD function in IPCV?
>
> The scilab examples I have come across require the path and filename.
>
> This can be done in matlab but I can’t manage to convert the code to 
> scilab.
>
> https://uk.mathworks.com/matlabcentral/fileexchange/27627-zoharby-plot-google-map
>
> I would just like to display something simple and build from there.
>
> Regards, Dave
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171030/eca05088/attachment.htm>


More information about the users mailing list