如何在两个位置之间显示重要的地点路线

编程入门 行业动态 更新时间:2024-10-21 11:57:56
本文介绍了如何在两个位置之间显示重要的地点路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

如何在两个位置之间显示重要的地点路线

本文发布于:2023-11-12 20:23:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582448.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路线   地点   位置   两个   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!