查找在谷歌地图最近的中转站/中途停留(公共汽车,火车等)
我在网上搜索,但现在我没有发现任何东西。
I searched the web but for now I didn't found anything.
是否有可能为找到最近的公交/火车/官方的公共交通种类的频道
Is it possible to find the nearest bus/train/ official stations of public transportation types?
在'最近'是一个单独的案件; =)
The 'nearest' is a seperate case ;=)
但它只是可能找到他们呢?
这是我searchin:)
but is it just possible to find them? this is that i'm searchin :)
http://img443.imageshack.us/img443/7203/bild2zy.png
他们的标签,但我在寻找如何访问/找到他们。
They are tagged, but I'm searching how to access /find them.
会很高兴的任何建议。
我不认为这是在谷歌地图支持的是,找到一个点的附近的公共交通的地点。
I don't think that this is supported in Google Maps yet, finding the nearby public transport locations of a spot.
我能想到的唯一解决方法是使用你想获得最近的公共交通作为方向计算的起点位置。
作为目的地,您选择的任何随机位置这是远了一点,但远远不够使的路线将需要公共交通(不只是步行)。
然后,你可以从得到的数据读取前的公共交通。
The only workaround I could think of is to use the location you want to get the nearest public transportation as a starting point of a directions calculation. As the destination, you choose any random location that's a little away but far enough so the route would require a public transportation (not just walking). Then you could fetch the first public transportation from the resulting data.
例如:
如果你已经计算出这样的路线:
For example: if you have calculated a route like this:
http://maps.google.com/maps?f=d&source=s_d&saddr=15+Vanderbilt+Avenue,+New+York,+NY+10017+(Grand+Central+Terminal)&daddr=central+park&hl=en&geo$c$c=CUdYBSaiyFjNFWbXbQIdIDOX-yFZWQrti_yyniknhhaRAVnCiTHFY7RT82_HCg%3BFT0ebgIdVT6X-yn1xwsBmljCiTG2GSD9L5ZZwQ&mra=pe&mrcr=0&dirflg=r&ttype=dep&date=06%2F22%2F10&time=10:34am&noexp=0&noal=0&sort=&sll=40.764379,-73.974187&sspn=0.093872,0.154324&ie=UTF8&z=15&start=0
你只需添加参数和放大器;输出= JSON的网址,并可能为JSON格式获取数据
you would just add the parameter &output=json to the url and could fetch the data as json format.
http://maps.google.com/maps?f=d&source=s_d&saddr=15+Vanderbilt+Avenue,+New+York,+NY+10017+(Grand+Central+Terminal)&daddr=central+park&hl=en&geo$c$c=CUdYBSaiyFjNFWbXbQIdIDOX-yFZWQrti_yyniknhhaRAVnCiTHFY7RT82_HCg%3BFT0ebgIdVT6X-yn1xwsBmljCiTG2GSD9L5ZZwQ&mra=pe&mrcr=0&dirflg=r&ttype=dep&date=06%2F22%2F10&time=10:34am&noexp=0&noal=0&sort=&sll=40.764379,-73.974187&sspn=0.093872,0.154324&ie=UTF8&z=15&start=0&output=json
在此示例中,您会得到总线M02作为第一个公共交通。
In this sample you would get "Bus M02" as the first public transportation.
但是,这真的是一个非常糟糕的解决方法。我想得等到谷歌的开放API为。
But this is really a very bad workaround. I think gotta wait until Google opens the API for that.