获取带有坐标的城市/国家名称(必应/谷歌地图) [英] Get city/country name (bing/google maps) with coordinates

查看:450
本文介绍了获取带有坐标的城市/国家名称(必应/谷歌地图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在bing地图(例如Google地图)中创建了一些示例,在这两个示例中,我都保存了一些图钉,并保存了坐标,但是我通过代码插入了图钉.所以我的问题是如何给他标出图钉的坐标,又给我国家的名字和城市的名字?

Hi I have some examples created in bing maps such as in google maps, and in both of them I have some pushpins saved with them coordinates, but I am inserting the pushpisn by code. So my question is how can I give the coordinates he marks the pushpin but also gives me the name of the country and the name of the city?

推荐答案

用于基于位置的服务的HTML5 API.但是请注意,它会提示用户是否要共享位置.

在以下站点上查看演示.

http://html5demos.com/geo [ ^ ]
You can use HTML5 API for location based services. But be aware that it will prompt the user whether he/she wants to share the location or not.

Check out the demo on the following site.

http://html5demos.com/geo[^]


这篇关于获取带有坐标的城市/国家名称(必应/谷歌地图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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