是否有我可以 ping 通的服务或 API,并将 lat/long 作为参数传递,它会返回 lat/long 对所在的邮政编码?这是仅限美国,所以我不必担心国际代码等.
Is there a service or API I can ping, and pass in the lat/long as parameters, where it returns the zip code that lat/long pair is within? This is US-only, so I don't have to worry about international codes, etc.
我觉得谷歌地图的反向地理编码对我来说太重了.如果可能的话,我更喜欢更轻的东西.这将在 javascript 中完成.
I feel like Google Maps' reverse-geocoding is too heavy for me. I'd prefer something lighter, if possible. This will be done in javascript.
叫做反向地理编码(地址查找).要获取 lat: 40.714224, lng: -73.961452 的地址,请使用参数 latlng=40.714224,-73.961452& 查询 (示例) 并返回 JSON 对象或使用 http://maps.googleapis.com/maps/api/geocode/jsonsensor=truehttp://maps.googleapis.com/maps/api/geocode/xml 返回 XML 响应 (示例).它来自 Google,而且是免费的.
It is called Reverse Geocoding (Address Lookup). To get address for lat: 40.714224, lng: -73.961452 query http://maps.googleapis.com/maps/api/geocode/json with parameters latlng=40.714224,-73.961452&sensor=true (example) and it returns JSON object or use http://maps.googleapis.com/maps/api/geocode/xml to return XML response (example). It's from Google and it's free.
这篇关于根据 lat & 获取邮政编码长的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
在 Angular 2/Typescript 中使用 IScrollUse IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
Anime.js 在 Ionic 3 项目中不起作用anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 项目中不起作用)
Ionic 3 - 使用异步数据更新 ObservableIonic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用异步数据更新 Observable)
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指令?)
将 ViewChild 用于动态元素 - Angular 2 &离子2Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(将 ViewChild 用于动态元素 - Angular 2 amp;离子2)