读取OSM地图(或其他格式)文件,以确定从坐标到路径的最短距离 [英] Reading OSM Map (or other format) files to determine shortest distance from coordinate to path

查看:372
本文介绍了读取OSM地图(或其他格式)文件,以确定从坐标到路径的最短距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用"使用openstreetmap文件在地图上显示航点(或坐标).

My App uses openstreetmap files to show waypoint (or coordinates) on a map.

基于Openstreet地图文件:如何确定从GPS坐标到(步行)路径的最短距离.

Based on an Openstreet map file: how can I determine the shortest distance from a GPS coordinate to the (walking) path.

我可以读取OSM(地图)或.osm文件...来访问路径吗?

Can I read an OSM (map) or .osm file ... to access the paths?

推荐答案

有一些误解.首先,OSM文件不是映射文件. OSM文件可用于创建一种格式,以加快地图渲染的速度,例如mapsforge格式可以做到这一点.

There are some misconceptions. First, the OSM file is not the map file. The OSM file can be used to create a format to make map rendering fast e.g. mapsforge format does this.

例如GraphHopper可以导入OSM文件(如.pbf或.osm),然后创建一个可用于您描述的问题的图形.不确定是否有问题;)

With e.g. GraphHopper you import the OSM file like .pbf or .osm which then creates a graph which can be used for problems you described. Not exactly sure what problem you have though ;)

这篇关于读取OSM地图(或其他格式)文件,以确定从坐标到路径的最短距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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