I'm curious how one might mimic Apple Map's iOS6 approach to showing Yelp photos. For example, when a user searches and clicks on a business, Maps shows a rotating slideshow of photos from Yelp's collection of pictures for that venue. The photos are shown with fade in/fade out transitions.
Does anyone know how to implement this? Also, might the same approach/functionality be offered using the foursquare API?
The Yelp API won't let you (only the first image is available), but if you where to use their API you could get the business yelp url and scrape the pictures from the actual page, BUT that would involve a lot of maintenance and I don't know it that would interfere with their terms (legal?)
Related
I want to show business ratings on a webpage. It includes google business, yelp and yellow pages etc. I can find api's of google business and yelp but it seems Yellow pages doesn't provide any API. I wanna know if there any better way to get this rating from a single API like a WordPress plugin i.e Any package, module for react.
I have a react site that renders different awards for users based on their status. I want the users to be able to share these images on facebook. Basically the idea I had was to use use-react-screenshot to take a screenshot of the component and share this image somehow. However, I know that facebook only lets you share public image urls. Since these awards are different for each user, I can't just upload them all on a site and get the url that way. Is there an api or something I can call that will give me an image url? Or is there an easier way to go about this? Thank you!
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.
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!
I'm trying to see the path my users take when clicking thru a web app I have. I've got logs, awstats and webalizer on the server-side, and I'm looking to install some sort of analytical product. I don't see any breadcrumb/click path data in my log files. Am I missing it? Barring that, what analytical products (Yahoo, Google, etc) can do this?
Thanks.
You can try GAVisual a small tool for Google Analytics which can show you users paths with waves (page by page) visualisation. It uses GA data for your site which was collected before.
I believe Google Analytics supports this via a site overlay that shows which links users clicked on each page. I don't think it will do per-user tracking, but the site overlay gives you a good idea of how users in general navigate through your site.
Regardless, I would highly recommend Google Analytics - super easy to set up and really powerful.
Woopra can show click-through paths in real time and on reports. It uses colors to visualize bounces (red) and popup links (green).
The downsides: free only while in Beta, and it can take a while for your subscription request to get approved.
Google Analytics does summary reports for entrance and exit paths and bounce rates, but it cannot show such a compelling picture as Woopra at the individual user level.
(source: heeroz.com)