如何计算与OSM文件中的两个点之间的距离是多少? [英] How to calculate distance between two points with the OSM file?

查看:732
本文介绍了如何计算与OSM文件中的两个点之间的距离是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要计算在地图两点之间的距离。 同样的方式谷歌地图距离矩阵,并得到方向的API

I need to calculate distance between two points in the map. Same way as Google Maps distance matrix and get direction APIs

既然我已经使用离线我越有OSM数据。 我已经下载了planet.osm文件中的地图数据。 如何与OSM文件计算两点之间的距离

Since i have to use a offline more i have to work with OSM data. I have downloaded the "planet.osm" file for the map data. How to calculate distance between two points with the OSM file?

推荐答案

目前区域已经有很多不同的路由对于OSM 的解决方案包括各种网络服务,独立的程序和库。你可能在许多离线路由器中的一个兴趣。

There area already a lot of different routing solutions for OSM including various web services, standalone programs and libraries. You are probably interested in one of the many offline routers.

这篇关于如何计算与OSM文件中的两个点之间的距离是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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