从gps文件在Google地图上创建路线的最有效方法是什么? [英] What's the most efficient way to create routes on google maps from gps files?

查看:118
本文介绍了从gps文件在Google地图上创建路线的最有效方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google地图上显示我的自行车路线。所有坐标都由我的GPS记录,并以.gpx文件格式存储。



我想知道最佳方法/文件格式/存储/加载坐标在Google地图上。



这是一个很好的示例,但它似乎并没有工作。

解决方案

您可能有兴趣查看以下内容文章,来自Google Geo Developers博客:



引用介绍:


如果您曾经试图绘制大量的覆盖在API地图上,您可能已达到应用程序性能开始受损的程度。通过一百个左右的标记,大多数浏览器都能很好地应对,并且可以使用群集解决方案,如 Fluster 可以帮助支持更多。但是,如果您希望展示成千上万个叠加层,则单独呈现它们可能会产生问题。

Maps API v3现在为此问题提供了两种解决方案。如果您有大量可用作KML的地理空间数据,则 KmlLayer 类可以呈现多达50,000个功能作为覆盖,不会影响任何浏览器的性能。为了支持以表格形式构建的数据集(如数据库或电子表格),我们现在还添加了 FusionTablesLayer 用于呈现存储在Google Fusion Tables中的数据。


他们有一个非常有趣的例子,可视化上传到Fusion Tables的山地自行车道。


I want to display my bicycle routes on Google maps. All the coordinates are recorded by my GPS and stored in .gpx file format.

I'd like to know what's the best approach/file formats/storage/loading the coordinates on Google Maps.

This is a good example but it doesn't seem to be working.

解决方案

You may be interested in checking out the following article, fresh from the Google Geo Developers Blog:

Quoting the introduction:

If you have ever tried to plot a very large number of overlays on an API map you have probably reached a point at which the performance of your application begins to suffer. With one hundred or so markers, most browsers cope just fine, and clustering solutions like Fluster can help support more. But if you have thousands of overlays that you wish to show, rendering them individually can be problematic.

The Maps API v3 now offers two solutions to this problem. If you have a large volume of geospatial data that can be served as KML, the KmlLayer class can render up to 50,000 features as an overlay that does not impact performance on any browser. To support data sets that are structured as tables, such as a database or spreadsheet, we have also now added the FusionTablesLayer class for rendering data stored in Google Fusion Tables.

They have a very interesting example visualizing mountain bike trails uploaded to Fusion Tables.

这篇关于从gps文件在Google地图上创建路线的最有效方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆