2012-04-08 85 views
0

可能重複:
Google Places Api subway and train station search in Russia stopped working谷歌Places API的subway_station,bus_station

前幾天我在測試(使用),其中我使用谷歌的地方最最近的地鐵站中的應用API,但是昨天和今天我一直在測試我的應用程序,現在我不能讓地鐵站靠近我。

我在讀https://developers.google.com/maps/documentation/places/supported_types和谷歌允許使用地鐵站類型,當我使用其他類型,如醫院,商店和公園應用程序的作品!

我下載了這一點 - >http://github.com/brendannee/walksy

在JScript文件我寫

placesService.search({ 
    radius: 4000 
, location: trip.start 
, types: [ 
    'train_station' 
    , 'bus_station ' 
    , 'subway_station' 
    ] 
} 

,而不是

placesService.search({ 
    radius: 5000 
, location: trip.start 
, types: [ 
    'amusement_park' 
    , 'aquarium' 
    , 'bowling_alley' 
    , 'casino' 
    , 'cemetery' 
    , 'city_hall' 
    , 'embassy' 
    , 'museum' 
    , 'natural_feature' 
    , 'park' 
    , 'stadium' 
    , 'zoo' 
    , 'point_of_interest' 
    ] 
} 

可以在任何一個東西的Tellme是我的錯?

thnaks很多。

回答

0

我想這可能是因爲根據其Github的頁面:

對於徒步旅行在舊金山盯着,興趣點來自於谷歌的融合表感興趣欽點點舊金山,加利福尼亞州

嘗試選擇SF以外的位置 - 它適用於我。 (也許你還應該添加transit_station)

0

我用這個測試:

https://maps.googleapis.com/maps/api/place/search/json?language=ru&location=4.647604837557583,-74.07900810241699&radius=1000&sensor=false&types=subway_station|train_station&key=xxxxxxxx

結果:

{ "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" }

我認爲,現在的谷歌不允許與地鐵站到位的服務。

在其他帖子有人說:

Google Places Api subway and train station search in Russia stopped working

感謝!

相關問題