Google Maps API - V2 key x V3 no key

2019-07-15 07:12发布

Ok, Google Maps API V2 needs a key and V3 doesn't. My question is exactly why is that? What was the key for? And why did they take it away in V3?

3条回答
贼婆χ
2楼-- · 2019-07-15 07:22

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.

查看更多
不美不萌又怎样
3楼-- · 2019-07-15 07:38

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.

查看更多
Summer. ? 凉城
4楼-- · 2019-07-15 07:40

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.

查看更多
登录 后发表回答