2012-03-27 131 views
-1

有人可以指导我如何使用谷歌方向API通过提供纬度和经度值,我试过这样做,但在响应它说'访问被拒绝'。谷歌方向API'访问被拒绝'

https://maps.googleapis.com/maps/api/directions/output?origin=53.2323832,24.33333,destination=40.33223,20.33333

这是我试过了。

+0

我没有得到拒绝访问,我得到一个404错误。 – deanWombourne 2012-03-27 15:18:44

+0

要使用Google的Directions API,您需要从Google帐户获取API密钥。 https://developers.google.com/maps/signup – 2012-03-27 15:22:52

+0

如果您获得404,那么您的网址不正确。 – 2013-02-23 13:38:18

回答

0

该URL有误。试试这个:

http://maps.googleapis.com/maps/api/directions/json?origin=53.2323832,24.33333&destination=40.33223,20.33333&sensor=false 

如果您正在使用Three20,你也可以使用extThree20Google extension.