开发者

Google Maps API - V2 key x V3 no key

开发者 https://www.devze.com 2023-01-08 20:47 出处:网络
Ok, Google Maps API V2 needs a key and V开发者_如何学C3 doesn\'t. My question is exactly why is that? What was the key for? And why did they take it away in V3?Google Maps API V3 makes a distinction b

Ok, Google Maps API V2 needs a key and V开发者_如何学C3 doesn't. My question is exactly why is that? What was the key for? And why did they take it away in V3?


Google Maps API V3 makes a distinction between normal users and "premium" users. You still need a key to access the premium features of Google Maps, but the basic stuff is now available to everyone without a key.


My theory for why they required a key in V2 was so that they could guarantee that you had agreed to the terms of use. Per their lawyers. Then for V3, the Google developers decided not to have a key because it is a pain that really doesn't guarantee anything. So in the disagreement between the developers and the lawyers, the developers won. Google is one of the few companies where that could happen.


Also, with V2 it was a bit of pain when you needed a separate API key if you were developing on your local machine and you wanted to test your website on localhost. Now there is no key required, so no more hassle with two keys.

0

精彩评论

暂无评论...
验证码 换一张
取 消