Google Fusion Tables Protected map layer explained? - google-fusion-tables

I am using Google Fusion tables in Google Maps API by a FusionTablesLayer method.
The problem is the table has to be unlisted or public in order to be displayed in Google Maps API. Is there any way to make the table private and still use it?
I have read all google info on OAuth and protected map layer, but didn't really get the idea of using OAuth.

Yes, there is a way to display a private table on a Maps API layer, however you need to sign up for a Google Maps API for Business account. More info here http://support.google.com/fusiontables/answer/2459324?hl=en

To complement javram's answer:
You do not need to use OAuth for the protected map layer with Fusion Tables Layer.
You might choose to use OAuth to retrieve data from the Fusion Table securely and then use other parts of the Google Maps API to map your data on the client.
Note that if you need to keep the data private, Fusion Tables may not be the right solution for you; You may wish to talk with the Google Maps for Business team about other solutions better geared for business use.
http://www.google.com/enterprise/earthmaps/maps.html
-Rebecca

Related

Using Bing Location API with 3rd party map

I'm trying to determine if it is allowed to use Bing Map's Location API and display and use the results in conjunction with a 3rd party map, such as OpenLayers.
I've dug through their license agreement and can't find clear direction one way or another.
The primary portion dealing with this seems to be section 3.2. General Restrictions.
(d) Use Content, including geocodes, other than via an authenticated call to the Services and/or in conjunction with a Bing Map.
(i) Use Content other than in combination with the Services and not separately.
I've focused on these two restrictions in particular. (d) implies to me that it is possible to use without Bing Map, as long as the Content is being access through the appropriate, authenticated Service. However, does (i) exclude independent use?
Google is much more plain text about this:
If your application displays Google Places API Web Service data on a map, that map must be provided by Google.
You can use any of the Bing Maps services with 3rd party map controls provide they use the Bing Maps map tiles. OpenLayers, Leaflet, and many other 3rd party map controls provide a way to use Bing Maps tiles already. Here is an example of using the Bing Maps tiles in OpenLayers: http://openlayers.org/en/latest/examples/bing-maps.html

I need an API to plot waypoints and give me a route through them, and to give me city population. Which API should I use?

I'm making an iOS app that needs to be able to find the most populated cities within a radius from a certain point, and to calculate a route that passes through a certain number of those cities, that satisfy a certain time constraint. I'm planning to use Google to give me polylines that I can put directly on an Apple Map in the Mapkit for Xcode. I've looked into the Google Maps SDK for iOS, and Google Places. Google also has a Directions API, and a Distance Matrix API. With so many API's, I'm slightly confused about which one I should use, and for what.
Additionally, do Google API's provide city population, or should I find that via another database?
You can use Google Maps URL Scheme to get directions for Google Maps iOS.
If you are ever confused about which API to use for Google Maps, you can use API picker.
There is no Google API that give city population, so you would need to find it with a another database.

Google Private Spreadsheet Javascript Oauth

I have been trying to fully understand the Google APIs so I can grab data from a Google spreadsheet that is private using Javascript.
I am using jQuery and D3.js to create a chart and I want to seamlessly pull the data without the user being redirected to an authorization page. I know I need to use OAuth, but I can't find any examples of how to do this seamlessly through an AJAX call.
https://developers.google.com/google-apps/spreadsheets/#authorizing_requests
This doesn't mention anything that makes it seem like I can do it without an OAuth dialog to the user.
To get a private spreadsheet page, you're going to have to authorize. See Google Spreadsheets API with OAuth 2.0 for Javascript for a complete working OAuth call for a Google Spreadsheet. I used this to create a working database using Google Spreadsheets.
Another way that might work: Fusion Tables. You will have to have a public sheet, but you can make it unlisted meaning it is only available through a link (which you only use in your javascript). It might want a location (as it was designed for spatial data), but you might be able to get around it or just use a dummy value.

Building a Bing Store Locator

I've tried Google but I'm not smart enough to build my own Google Store locator. Everything is either old or in PHP and I use Python. Even GAE uses Python but I can't find any tutorials for Python at all. I even had a bounty here on S.o. for resources to a Python store locator and the only answer had a post from 2008 that was updated to "deprecated" on the post itself.
So I decided to give Bing a try and it has more noob options, such as "enter address here" and then it's listed in the app. The only problem is that everything is pointing me to Bing Spacial Datasend and it says they want to charge an arm and a leg.
Also, if you know of any, are there any good tutorials on building a Bing Store Locator? Google search has come up empty for me but they could always be hiding them. Thanks.
If you have less than 50 locations you can use the Bing Spatial Data Services under the free terms of use. If your application is a public facing web site, which most store locators are you can also generate 125,000 transactions against Bing Maps for free per year. If this is enough or not would depend on the number of stores and customers you have. The Bing Spatial Data Services is a really good option as you simply upload your data and it exposes it as a spatial rest service for you which you can access directly from JavaScript without the need for any server side code. Here is an example of how to query a data source in the Bing Spatial Data Services: http://www.bingmapsportal.com/ISDK/AjaxV7#SpatialDataServices1
If your application has a lot more volume then you would need a Bing Maps license. The cost of a license varies depending on the amount of transactions your application will use. If you have a Bing Maps license data sources can have up to 600,000 locations in a single data source and each Bing Maps account is allowed up to 25 data sources.

How do you cross-reference Google Places results with other 3rd party data providers? (Yelp, Foursquare, etc.)

Does the Google Places API have any built-in support for cross-referencing the returned places with other data providers (Yelp, Foursquare, etc.)? For example Factual has erected the Crosswalk standard to map the IDs of the results across various different data providers. I don't see Google Places on the supported providers though.
How would you go about augmenting information from other data providers (or with your own data) if using Google Places as your places provider?
Also Yelp won't let you merge results as part of their T&Cs, understandably but sadly.

Resources