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

classic Classic list List threaded Threaded
2 messages Options
David Brant David Brant
Reply | Threaded
Open this post in threaded view
|

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

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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

plot_google_map.m (226 bytes) Download Attachment
script (222 bytes) Download Attachment
Tan Chin Luh-2 Tan Chin Luh-2
Reply | Threaded
Open this post in threaded view
|

Re: Google Static Maps using IPCV imread function - help

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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users