Does the Google Street View API support retrieving a full 360 equi-rectangualr image? - google-street-view

The docs are not clear on this as they mention fov and viewport suggesting a portion of the entire spherical image.
Does the Google Street View API support retrieving the entire 360 degree equi-rectangular (lat/lon) image?

No, but you could download separate panorama tiles and pack them together of use a third party tool (ex: https://istreetview.com/) and get the entire 360 degree image.
Another option would be to code the above functionality by yourself by using Google StreetView Image API (https://developers.google.com/maps/documentation/streetview/intro). To be honest, I did not try this myself, but through the API you should be able to retrieve all parts of the image and then stitch it back into equirectangular panorama.
This might give you more info:
How to get the original panorama image by panoid in google street view?
EDIT: While searching a way to overcome the fact that Google StreetView app doesn;t work as marketed, I found another third party service able to retrieve photos https://gothru.co/

It is possible by making use of the FOV and heading options within the API.
Take particular note of the heading param.
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=0&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=120&source=outdoor&key=YOUR_KEY
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=51.52551,-0.08853&fov=120&heading=240&key=YOUR_KEY
By making these three separate API calls you will receive the 360 image sliced into three parts.
You can then use something like node blend to combine them and voila you have a 360 panoramic image!

Related

adding google maps to background settings with search function

i am trying to find a way to add google maps as a background to draw.io
i need more then just a screenshot of a map.. i need google maps coded into the background as a tool they can tick to enable along with a location search feature..
and instead of a background grid it will be google maps that you can drag shapes and images onto..
i just am not sure what the best approach is... any help will be much appreciated.
below is a image of what i mean
https://ibb.co/r59xYhS

Is there any way to configure the pan/crop position when using Google App Engine Image API?

I'm using Google App Engine and using get_serving_url to get a URL which I can append on to perform resizes and cropping. I'd like to be able to crop a square out of an image, but to also control what part of the image the crop is coming from, like passing in x/y values/
I've seen an unofficial list of options. I tried using the x/y/z options but they did not work and I'm not sure how to get them to. I don't see why GAE Image API wouldn't be able to handle this.
From the oficial documentation of Images Python API there is no parameters to specify the x,y for the crop transformation when using get_serving_url() method.
But if you use the crop method of Image() class, it accepts 4 parameters:
crop(left_x, top_y, right_x, bottom_y)
Check the documentation here.
Notice that this is for Python API for App Engine Standard.

How can i automate Google map image on web page?

I am not able to automate google map screen which is present on my application web page.
I have web page where google map is present in square in half of screen. I want to click on the road present in map or a restaurant logo which is present on the google map.
When i tried to find the locators for the map then in the DOM it is present as an image and no other html properties or locators are associated with it.
Also i tried an option using moveToElement() function of action class but this solution is not reliable as most of the time it is not working.
Please suggest me any solution for this automation issue if someone faced this issue of Google maps automation before ?
Sounds like HTML5 issue over a google maps issue. This is tricky for Selenium, see these articles:
https://www.linkedin.com/pulse/html-canvas-testing-selenium-opencv-maciej-kusz/
https://chariotsolutions.com/blog/post/automated-testing-of-html5-canvas/
which recommend using action chains to move to and click certain x,y coordinates.
Also, check out the canvas javascript api; you may be able to use javascript_executor to manipulate the canvas.

Silverlight simple map tool with zoom and pushpins

I'm very new to Silverlight so bear with me. I need to implement a web page with a zoom-able map of Europe. I need the map to contain pushpins or such like which are generated from a database of lon/lat locations.
If the user hovers over a pin then some data should appear about the location and then if the user clicks on a location and be given detailed information (images, text and other live data) next to the map. Originally I was looking at google maps or bing but as this is to be used commercially and is not going to be public, I am unable to use them for licencing reasons.
I've looked into using deepzoom, which seems perfect but I cannot find any decent ways of adding the pushpins.
So essentially can anyone suggest a tool to allow me to make a zoomable map (I can supply a map image) which can have pushpins generated which can be selected by the user through highlight or click
Many thanks,
Cap
Use Bing Maps Silverlight Control.
Here is preview from Microsoft.
You need Developers Account for using it. Account is free. You can get it here.
Bing Maps control is simple to use, supports pushpins and deep zoom.

How to save esri map as an image file

I am using Silverlight 3 and I am trying to take a screenshot of esri map.
I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and map image is not accessible at server side in my silverlight application).
So I am trying to find a function from esri so that I can save the map image as a file.
does anybody know how to do this? or any other way around?
I am using a script from the Code Gallery for both printing and exporting map images.
The script requires a little bit of tweaking to get it to work (plus you need to dig a little bit into WCF and self-hosted services), but it has been working great for several months now. You can see it in action at our web site.

Resources