我正在尝试使用地图提供商。我想知道这些哪个更好。
到目前为止,我所做的所有阅读都表明 OSM 数据更好。主要是为了,它是开放的&离线可用性。但无法正确选择使用哪个图层。
API 支持如何?
使用哪些瓷砖? (openstreetmaps使用的mapnik似乎很好而且免费)
OpenStreetMaps Tile 使用政策(http://wiki.openstreetmap.org/wiki/Tile_usage_policy)确实规定了限制使用。
哪些其他滑动地图图层与 openstreetmaps 配合使用效果更好/更好(免费/付费)。
我的要求是:
- 允许用户查询路线。
- 允许用户根据 GPS 坐标查找位置。
- 添加一个图层以根据位置显示一组我的一些数据。
I am trying to use a map provider. I wanted to know which of these is better.
Until now, all the reading I have done indicates OSM data is better. Mainly for, It's OPEN & off-line usability. But couldn't get a proper take on which Layer to use.
How are the API supports?
Which tiles to use? (mapnik used by openstreetmaps seems to be nice & free)
OpenStreetMaps Tile usage policy(http://wiki.openstreetmap.org/wiki/Tile_usage_policy) does say limited usage.
Which other slippy map layers are good/better with openstreetmaps (free/paid).
My requirements are:
- To allow users to query for routes.
- To allow users to look for a location based on GPS co-ordinates.
- Add a layer to display a set of some of my data based on location.
发布评论
评论(1)
OpenSteetMap 数据的优势在于:
Tiles - 取决于您想要构建的应用程序。对于小型(http 请求数量不多)的 Web 应用程序,您可以使用 Web API 这是有充分记录且可靠的。
OpenStreetMap 的真正优势是使用 OSM 数据和许多工具来构建您自己的 OSM 服务器(一篇好文章 此处),并使用 Mapnik 或 Osmarender 切片渲染引擎生成您自己的可在 Web 应用程序上使用的切片。
这就是存在磁贴限制使用的原因,因为他们建议托管和使用您自己的服务器磁贴。
Mapnik 和 Osmrender 之间的主要区别在于,后者导出 SVG 图块格式。
有关您的要求的信息:
A.路由
可以使用 OSM 数据构建路由 Web 应用程序。
这里是 OpenStreetMap wiki 上的路由程序和 Web 服务列表
这里有两个使用路由的网站使用 OpenStreetMap,它可以让您了解如何在 Web 应用程序中使用它:
yournavigation.org
openrouteservice.org
B.按 GPS 坐标搜索
您可以使用反向地理编码并查询 OSM 数据库以获取 GPS 坐标 Nominatim< /a> 工具。
这是使用此工具的网络应用程序。
C.层
这是您可以使用的网络地图库列表。
OpenLayers 可以与 Mapnik 生成的图块一起使用,并且它是一个常用的库(没有服务器端依赖项),具有大量文档。这是一个可以与 Google 地图一起使用的框架,因此值得一试。
Polymaps 与 Osmarender 生成的 SVG 图块完美集成。它可以根据标记 - 用户位置生成特定区域的显示/图表/。
OpenSteetMap data is better in the sense that:
Tiles - depends on the application you would like to build. For a small (not a high number of http requests) web application you can use the web API which is highly documented and reliable.
The real advantage of OpeenStreetMap, is using OSM data and a number of tools to built you're own OSM server (a good article here), and to use Mapnik or Osmarender tiles render engines for generating you're own tiles that can be used on web applications.
This is why the Tile limitation usage exists, because they recommend hosting and using your own server tiles.
The main difference between Mapnik and Osmrender is that the second exports SVG tiles format.
Information regarding your requirements:
A. routing
It's possible to use OSM data to build a routing web application.
Here is a list of routing programs and web services on OpenStreetMap wiki
Here are two websites using routing with OpenStreetMap which can give you an idea of how it's used on web applications:
yournavigation.org
openrouteservice.org
B. search by gps coordinates
You can use reverse-geocoding and query the OSM database for GPS coordinates the Nominatim tool.
Here is a web application using this tool.
C. layers
Here is the list of webmaps libraries that you can use.
OpenLayers can work with Mapnik generated tiles and it's a commonly used library (with no server-side dependencies) with plenty of docs. It's a framework that can be used as well with Google maps, so it's worth giving it a try.
Polymaps integrates well with SVG tiles generated be Osmarender. It can generate display / diagrams / of specific areas based on marker - user location.