Force a static street view to be outdoor - google-street-view

The JS API lets the user decide if the response must be an outdoor view, indoor view or if it doesn't matter.
Can we do the same and ask to get the outdoor view only using the static API, for example for the following request:
https://maps.googleapis.com/maps/api/streetview?size=600x300&location=41.8866638,-87.6314861&heading=151.78

Related

Reading and updating data from outside the widget

Is it possible to first request the data of some widget, and then update the data or add new ones?
Example: Product card widget. There are several of them on the page. I go to the admin panel and by pressing the button the data in all widgets is updated based on those received from other sources (API of a third-party site). In short, the synchronization of data in some widgets based on some data received from another site.
Whatever the manager manually checks, does not waste time changing prices, the availability of balances based on data from a friendly site, from where I get the data.
How can one read widget data on some page via PHP?

Google Maps Free API for NGO project

I'm building a React app and I would like to use Maps. Google Maps and other Maps APIs have a charge and this project will be free for the community (just like an NGO) so no budget at all.
In this app there is a page to create an Event, so you can type many things and where the Event will happen, and that is where I would like to use Maps, to search and show the location.
I thought that if is there any possibility to use a search box connected to an API just to get the Longitude and Latitude based on the search would be great, but I have no idea how to make it and I was expecting that you could help me find a way. (the thing is: get the information for free)
Just as I create this event, I would like to show this information on the Event page, so where the event will happen. And that would be the second part that I would like to use Maps. Do you know if I just show the location in Maps if I would be charged? If so, then I can use redirection to Google Maps using the Latitude and Longitude that I got from the event creation.
Thanks in advance!
See https://www.google.com/nonprofits/offerings/google-earth-and-maps/ for non-profit organizations.

Working around 10 Maximum Waypoints in Embed Maps

I'm volunteering my time to write an html5 app for a local NPO that frequently delivers food. The app is fairly simple - a delivery volunteer comes to the center where they can download their delivery routes. They are then allowed to customize their routes (drag and drop) or to re-order waypoints for optimum delivery (e.g. finish near their house, their office, or back at the center using maps web service API).
Here's the problem. All of this is working beautifully using the google maps web api. However, the google embedded map (in an iframe) is only showing 10 waypoints, when the average route has 13. Furthermore, if a user clicks to see the larger map, it only shows 10 of the 13 stops they have.
According to the agreement, I need to display a google map, but only showing some of the stops would be confusing to the users.
Is there a way around this limit? Is it possible to manually build the route from javascript (based on the web api result) and still use the directions method in case a user clicks into the large maps and wants to print the full route.
I'm using the directions embed API:
googleurl/directions/?origin=XX&destination=XX&waypoints=XX|XX|XX|XX|XX|XX|XX|XX|XX|XX|XX|XX|XX&key=XXXXX
I never really found a workable solution, so instead of showing the route, I am attempting to add markers for the waypoints in numbered order. It accomplishes my intent, meets the gmaps agreement, and gives the user an overview of the route.
I'm using dburles:google-maps for meteor/react.
if(!this.isLoading){
Clients.find().forEach(function(document){
var map = GoogleMaps.maps['mymap'];
var marker = new google.maps.Marker({
draggable: true,
animation: google.maps.Animation.DROP,
position: new google.maps.LatLng(document.lat, document.lng),
map: map.instance,
id: document._id,
title: document.seq
})
});

Are images in HTML-based timeline cards loaded from the url provided in the mirror api call?

Background:
I set up a local server which exposes a web service that returns images.
My Glass is connected to the same network as this server.
In the timeline insert method, I am providing html which contains an img tag pointing to an image from that web service.
The url contains a local network IP address (e.g. in 192.168.*)
When I observe the timeline card on my glass I notice the image is not rendered
However if I provide an image url for a public ip address, the image is rendered
Speculation:
Images in timeline items rendered using HTML do not load from the provided url in the mirror api call.
They could be loaded by GoogleImageProxy just like the default in gmail or through some other indirect method.
Would love some confirmation on these, and if in the case of the GoogleImageProxy how could I turn it off?
Gmail offers a way only for email to not render with it, no central site in Google to turn it off across all properties or any place in the MyGlass site.
Other Notes:
I verified the image url is accessible on the local network by another device I tested with.
The timeline: insert API reference: https://developers.google.com/glass/v1/reference/timeline/insert
Question:
Are images in HTML-based timeline cards loaded from the url provided in the mirror api call?

Implementing Yelp business photos into iPhone app like Apple Maps

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?)

Resources