Google maps geocoder for OpenStreetMap - google-maps

I use almost exclusively OpenstreetMap, but not for geocoding, because I think Nominatim is not very flexible.
Can I use google geocoder free and unrestricted? Do I need to write on my website that I use google geocoder? Are there any restrictions, like this
However, I would find that very strange because I only use google geocoder.
For clarification:
PHP:
$filename="http://maps.googleapis.com/maps/api/geocode/xml?address=".$_GET['address']."+&sensor=true_or_false";
$xml = simplexml_load_file($filename);
$lat=$xml->result[0]->geometry[0]->location[0]->lat;
$lon=$xml->result[0]->geometry[0]->location[0]->lng;
And these coordinates I use then for OpenStreetMap.
I would be very happy for an answer.
Thanks,
Toby

No you cannot.
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.
Derived from Google

Related

Google Geochart Without Geocoding

I can't find a clear answer for this one. I've read that there is no limit for Google Charts. However, I have read that there is a limit on using geocharts because of the usage of geocoding which falls under the Google Maps API. That said, under Google Geocharts Data policy, there is this:
Locations are geocoded by Google Maps. Any data that does not require
geocoding is not sent to any server. Please see the Google Maps Terms
of Service for more information on their data policy.
Is there any way that I can be sure that I am not using geocoding when I set the locations.
My locations are sent to the Geochart API as latitude-longitude, ISO-3166-1 alpha-2, or ISO-3166-2.
I just want to be sure that I am not using geocoding because I could have 25,000+ calls a day and do not want to have an issue with the Google Maps API Limits.

Better free option for google maps geocode

I'm using google maps to geocode. But I have 280k address to geocode, I would like to know a better option for this.
Thank you.
I looked for Bing and Yahoo! tutorial to make the geocoder, but nothing was found, only plotting tutorials.
Bing Maps has a couple of different options for geocoding data. There is a lot of information out there on this as well.
The batch geocoder in Bing Maps allows licensed customers to geocode up to 25 files of 200,000 addresses a day. Unlicensed customers are limited to 50 addresses per file. Documentation:
http://msdn.microsoft.com/en-us/library/gg585136.aspx
http://msdn.microsoft.com/en-us/library/ff701733.aspx
Bing Maps also has an on-demand REST geocoding service which can geocode one address at a time. Here is some documentation:
http://msdn.microsoft.com/en-us/library/ff701715.aspx
http://msdn.microsoft.com/en-us/library/jj819168.aspx
http://msdn.microsoft.com/en-us/library/jj870778.aspx
http://blogs.bing.com/maps/2013/02/14/bing-maps-rest-service-tips-tricks/
All this said, it should be noted that there are restrictions around geocodes with most mapping platforms. Generally they can not be used with competing mapping platforms. i.e. Data geocoded by Bing Maps cannot not be used in a Google Maps application.

Wanted to use Google Map API in desktop client

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.

Use Google maps for reverse geocoding

Can I use Google maps instead of blackberry apis to do reverse geocoding?
Yes, you can use the Google Geocoding API.
Then, the follow-up question is How do I read the JSON data returned by Google's API?
Yes, you can. However, you should be careful with this Terms & Conditions statement:
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.
More info: Google Geocoding API Limits

How to handle inaccurate Google Maps locations?

When I type in addresses in Google maps for locations in Asia, quite a lot of them are off by more than 200 metres. For example, "blk 85 bedok north road, singapore" is off by more than 300 metres. While I don't expect Google Maps to be spot on every time, sometimes the error is too great for certain use cases. What options do I have to handle inaccurate Google Maps locations in a web app? The web app should let the user enter an address or postal code as part of an entry and I will geocode the address and store the lat-long.
You could use bing, yahoo's and google's Geo Location api's to find latitude and longitude for a location, average the results together and use the result. Thus, if they all agree, you still get a good location, but if they disagree you get the best approximation of all three.
You could even programmatically compare the results from each engine and throw out any that don't agree with the others (for instance, if bing and yahoo agree and google does not, you could throw out google).
Beyond that, if you have a collection of addresses you know to be wrong, you could simply store the correct longitude and latitude for those points, and override the results in those cases.
Of course, to get around this problem at all, you'll need to geocode the addresses, check their validity in some way (as described above), and plot them using their latitude and longitude.
You don't have any fixes for this really, you're at the mercy of the accuracy of google maps here. The important part is you don't know if the address in inaccurate when doing one search to the next, so nothing you can do to handle it.
You can post a topic here and google will see it and often respond as well: Google Maps Local Listing Forums. I'd open something there with some of your examples and hope they get more accurate...that's all you can do in this case.
There are always other alternatives as well, yahoo and bing have mapping APIs, but I have no idea how much better or worse off you'd be going that route.
The problem is not the lat/lng data, in fact, they are correct. The problem is that the geo coords of the map tiles of the public Google maps api are inaccurate. The maps at maps.google.com are provided by a different map provider than the map tiles used with the public Google Maps API that you can embed in your website, use in your own applications, etc.
Check my recent posting at Google Maps & apps with mapview have different current positions
Is the result out on maps.google.com as well as through the maps api?
If on google maps live site the result is accurate then you can do an ajax search to return the correct lon/lat.
I have used this when geocoding UK postcodes
Geocoding UK Postcodes with Google Map API
I tried to reply to the upper answer, but I am not qualified enough yet. Just be aware that whatever you're using for geocoding, sometimes has restrictions on the use of that data. For example, google's geocoding API isn't allowed to be used to display information retrieved anywhere but google maps. The same might be for the others, I don't know what your project is, but it's something to be aware of.