Use Gogole map static api
in
Programming Questions
•
3 years ago
Hello
I'd like to include a Google Map onto my Processing process. I wonder if anybody had this experience. In fact, I don't need dynamic map, so just static api would be fine.
I can get the image as a extention-less URL string, but didn't really work with PImage. And I also tried "Toolkit." but it says:
Cannot find anything named "Toolkit"
byte[] b = loadBytes("http://maps.google.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false");
Image javaImage = Toolkit.createImage(b);
PImage aaa = new PImage(javaImage);
Does anyone know how I can call the static map image ?? Thanks a lot!
I'd like to include a Google Map onto my Processing process. I wonder if anybody had this experience. In fact, I don't need dynamic map, so just static api would be fine.
I can get the image as a extention-less URL string, but didn't really work with PImage. And I also tried "Toolkit." but it says:
Cannot find anything named "Toolkit"
byte[] b = loadBytes("http://maps.google.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false");
Image javaImage = Toolkit.createImage(b);
PImage aaa = new PImage(javaImage);
Does anyone know how I can call the static map image ?? Thanks a lot!
1