开发者

Is there an alternative to Google Maps to calculate distances when using a bicycle or public transport?

I'm creating a website using Google Maps API and everything was fine until the client asked me if it was possible to calculate distance and travelling ti开发者_运维问答me when riding a bicycle or when using public transport. As far as I know, GMaps support bicycle in the US only and has no support for public transport.

I need a solution that is available world-wide. What other options do I have apart from Google Maps? Can I use web services from other sites and then combine them with GMaps API? (for example make a query to public transport companies and then display the result on GMaps)?


I've found out this option that looks promising:

http://developer.mapquest.com/


You can use Google Maps API (GMaps) and simple distance calculations to calculate cycling distances throughout the world. An example website which calculates distances on google maps using Google Maps API and javascript is http://www.mappedometer.com/


Why don't you just use device's GPS to get the coordinates? GPS can get you distance, time, speed, altitude, bearing. Also you can plot the coordinates you got from GPS to Google Maps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜