Wanted to use Google Map API in desktop client - google-maps

I want to use th Google Map API for my desktop tool.As I dont want to show any Map control in the UI I just want to give some address to API and the google should return me the city,country,zip etc.
Please tell me how I can achieve this.

You can't use the Google Maps API in a situation where you're not going to display a map. From the documentation:
Note: the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.
I suspect you'll need to look for other commercial solutions for your situation.
Note that although I work for Google, this post is not made on behalf of Google - it's just based on the public documentation.

Related

Is there any API available that could return the width of a street?

I would like to get a rough description of the streets/roads type. For example when using routing algorithms, we would like to avoid sending long vehicles to inappropriate roads (narrow streets). In Google Maps highways and narrow roads are quite different and the difference is presented very clear in high level. It would be nice if we could get this information through an API to optimize the routing algorithms.
Since you have a google-maps tag, I assume that you'd also want this feature in Google Maps API, there are currently no features for this in the Google Maps API, however, you may file a Feature Request in the Issue Tracker for Google Maps APIs in order for the engineers to review the feasibility of your request.

show directions on google maps website

So I have successfully found directions to get some lat/long A to lat/long B using the Google Maps v3 directions api.
I want to be able to take a route from this api and give the user an option to view them on the google maps website.
I dont want to show the route on my website but only show the time it would take to get from A to B.
is this possible?
thanks!
https://developers.google.com/maps/documentation/directions/#Limits
The Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.

Requirements for using google places library

In a web app I have set up an adress autosuggest using google places library like this:
autocomplete = new google.maps.places.Autocomplete(
/** #type {HTMLInputElement} */(document.getElementById('AddressSearch')),
{ types: ['geocode'], bounds: region });
...
Right now I got into the research of Maps API lincenses and I really got confused about the places API and places librabry. I see that different license rules apply to places API.
But what about places librabry? I cannot seem to find any other requirement than including google's logo. Is that the only requirement?
Any guidance, help, suggestions are much appreciated.
Both the Places API and the Places Library in the JavaScript API (as well as the JS API itself) are subject to the Google Maps/Google Earth APIs Terms of Service. The additional requirements on the Places API policies page are a consequence of these ToS (see section 9 for example) and therefore apply to both.
In general, you should make sure your application complies with the Terms of Services. There's also a few FAQ entries related to the ToS.

Combine Google Places and Google Geocoding APIs

Here is my situation: I use Google Places Autocomplete to help the user choosing a destination. I want then to use the data of the chosen destination (geocode type in Google Places)
The thing is that, through Google Places Details (with reference token), the details provided are not optimal, compared with the one give by Google Maps Geocoding API.
For example, Google Maps API provides a viewport and a bound box for almost every destination, whereas Google Places Details never provides any bound box and gives a viewport only some times.
So I wonder if there is a way to pass the destiantion from Google Places Autocomplete to Google Geocoding API. Could we use the reference token or the unique id as a junction?
Of course we could use the "formatted_address" but it doesn't insure unicity and integrity of the data so I don't think it's a good idea.
I'm sure there must be a gateway between Google Places and Google Geocoding APIs but I don't think it's documented.
So if someone has some experience about that, I'd be glad to hear it.
Thanks

Using Google maps API with CloudMade maps

I'm developing an iPhone app that uses a map and show direction between two points on the map, the problem is i cant use the Google maps because it does not support street naming in my country, so instead I'm using CloudMade maps.
The question is can i still query Google servers with direction requests and use the results on the CloudMade map? Is the Google license allows it?
According to Google's terms of service you cannot place any content obtained from Google's service on any other map without written permission from Google.
10.1.1
(g) No Use of Content without a Google Map. You must not use or
display the Content without a corresponding Google map, unless you are
explicitly permitted to do so in the Maps APIs Documentation, or
through written permission from Google. For example, you must not use
geocodes obtained through the Service except in conjunction with a
Google map, but you may display Street View imagery without a
corresponding Google map because the Maps APIs Documentation
explicitly permits you to do so.
I would contact Google, they may be able to work with you in your situation.
Update:
Google contact information is a bit sparse for free maps.
Here is a link to the permissions tool:
http://www.google.com/intl/en/permissions/geoguidelines.html
This is a link to Google Enterprise support:
http://www.google.com/support/enterprise/bin/answer.py?answer=142244#maps
Or you may want to try and contact a Google office in your country if one exists. I do not believe their legal department has a direct contact information for the public.
http://www.google.com/intl/en/about/corporate/company/address.html
An here is the Google premier sales contact information. I don't think you would need to obtain a premier license (they are expensive) with the information you provided about your app but the sales representative may be able to point you in the right direction.
http://www.google.com/support/enterprise/bin/request.py?contact_type=gme&utm_campaign=en-codepremier