【问题标题】:Google Places API subway_station, bus_station [duplicate]Google Places API metro_station,bus_station [重复]
【发布时间】:2012-04-08 21:58:46
【问题描述】:

可能重复:
Google Places Api subway and train station search in Russia stopped working

几天前,我正在测试(使用)一个应用程序,在该应用程序中,我使用 google places API 获得了最近的地铁站,但是昨天和今天我再次测试了我的应用程序,现在我无法靠近地铁站我。

我正在阅读https://developers.google.com/maps/documentation/places/supported_types 和google 允许使用地铁站类型,当我使用医院、商店和公园等其他类型时应用程序工作!

我下载了这个 -> 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'
  ]
}

谁能告诉我我的错误是什么?

非常感谢。

【问题讨论】:

    标签: javascript google-maps google-places-api


    【解决方案1】:

    我想这可能是因为根据它的 Github 页面:

    对于盯着旧金山的徒步旅行,兴趣点来自一个谷歌融合表,其中包含在加利福尼亚州旧金山精心挑选的兴趣点

    尝试选择 SF 以外的地点 - 它适合我。 (也许你也应该添加transit_station)

    【讨论】:

      【解决方案2】:

      我正在测试这个:

      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

      谢谢!!!

      【讨论】:

        【解决方案3】:

        此问题已在此处的 Google Places API 问题跟踪器上报告:http://code.google.com/p/gmaps-api-issues/issues/detail?id=4061

        请点击“星号”图标以获取未来更改的通知,并让我们知道您有兴趣看到它得到解决。

        【讨论】:

          猜你喜欢
          • 2023-03-24
          • 1970-01-01
          • 1970-01-01
          • 2017-09-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2016-04-02
          • 2014-03-18
          相关资源
          最近更新 更多