如何在两个位置之间显示重要的地点路线 [英] How to Show important places route between two locations

查看:105
本文介绍了如何在两个位置之间显示重要的地点路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,它在特定单一路径的两个位置之间的地图中显示一些重要点。如下面的例子。如果有人知道这些相关的作品,请告诉我。



示例点A-> x点B-> Y



在给定的X&Y单程显示酒店/加油站等....使用复选框



这可能吗?如果是的话,你能指出一些教程吗?

I am developing an app that displays some important points in a map between two locations specific single route. like as following example.if any one know about these related works please let me know.

example point A-> x point B-> Y

in given X & Y single route show Hotels / filling stations etc.... using check boxes

Is this possible? If yes, can you point some tutorials?

推荐答案

你可以使用Google Maps API ...



许可条款 [ ^ ]



Directions API [ ^ ]



然后根据航路点和路线的返回值,您可以在指定的半径内搜索您想要显示的兴趣点,获取lat / lon并在地图上放置一个别针或任何你想做的事。
You can use the Google Maps API...

Licensing Terms[^]

Directions API[^]

Then based on the return value from the waypoints and route, you can search within a specified radius for the points of interest that you want to also display, get the lat/lon and put a pin on the map or whatever you want to do.


这篇关于如何在两个位置之间显示重要的地点路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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