在 bing 地图 API 中使用 currentLocation 以及企业搜索
我目前在此网站,该网站展示了如何使用必应地图 API。但我想要实现的是,首先地图应该获取您当前的位置并搜索附近的业务类型,比如说餐厅或支票兑现地点。 我的当前页面具有当前位置,但现在我如何在我的页面上实现 FindNearBy 函数?
PS 我希望用户无需输入搜索文本即可进行搜索,因此地图应加载当前位置,并且其旁边应列出附近所有或最近的 5 家餐厅。
I was currently at this site which shows how to implement business search using the bing map api. But what I am trying to implement is, first the map should get your current location and search for type of business nearby, let's say Restaurant or Check Cashing place.
My current page has the current location working but now how I implement the FindNearBy function with my page?
P.s. I want the search to already take place for the user without having to enter a search text, so the map should load up with current location and right next to it should list all or maybe the closest 5 restaurant nearby.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不适用于 Bing 地图...您需要 Bing 电话簿 API 来执行此操作。
我可以带你去那里。下面的示例结合了 Bing 地图 API 和 Bing 电话簿 API 的使用)我刚刚提交了一个关于如何查找业务类型的类似问题,但是...我不确定是否有办法做到这一点:/ (下面的示例搜索该地区的所有星巴克...当然,需要一些 HTML 集成。
Not with Bing Maps...you need the Bing Phonebook API to do this.
I can get you part of the way there. The below example combines the use of both the Bing Maps API and the Bing Phonebook API) I just submitted a similar question about how to find the type of business, however...I'm not sure there's a wayto do this :/ (Below example searches for all Starbucks in the area ...of course, some HTML integration is required.