查找纬度/经度的县名称 [英] Find County name for a Lat/Long

查看:88
本文介绍了查找纬度/经度的县名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一个网络服务,该服务将允许我获取特定纬度/经度的县名(而不是国家/地区).我将在服务器应用程序(可能是Java应用程序)中执行查找.我想如果那里有一些库,那就没有web服务了,但是我想要最新的信息.我已经寻找了很多支持该功能的API,但是到目前为止,我还没有找到一种有效的API.我已经像这样尝试过Yahoo API:

http://where.yahooapis.com/geocode?q=39.76144296429947,%20-104.8011589050293

但是它不会填充地址信息.我已经尝试了一些标志"选项,但都无济于事.

我也浏览了Googles API,但是我读了多个地方,这些地方没有填充County县.

那么,有谁知道会采用纬度/经度并返回与该位置相关联的县的任何API?而且,如果您有任何示例,那就太好了.

我还想知道哪些API允许在商业应用程序中使用.我发现的许多数据都说您不能使用这些数据来赚钱.我可能读错了这些,但我正在寻找一种可能会使用此数据收费的服务.所以我需要选择.在我探索各种选择时,也许会提供免费服务,并在以后支付服务费用.

解决方案

出于完整性考虑,我找到了另一个API来获取此数据非常简单,因此我想与大家分享.

https://geo.fcc.gov/api/census/

FCC正是针对此问题提供了Block API,它使用人口普查数据执行查找.

他们的使用限制政策是(from developer@fcc.gov)

我们对块转换API的使用没有任何限制,但我们确实要求您尝试尽可能分散您的请求.

I'm trying to find a webservice that will allow me to get a County name (not Country) for a specific Lat/Long. I would be performing the lookup within a server application (likely a Java application). It doesn't have a be a webservice if there is some library out there I suppose, but I would like up-to-date information. I have looked around quite a bit for an API that supports this, but so far I haven't been able to find one that works. I have tried the Yahoo APIs like so:

http://where.yahooapis.com/geocode?q=39.76144296429947,%20-104.8011589050293

But it doesn't populate the address information. I've tried with some of the "flags" options there too to no avail.

I've also looked around at Googles APIs as well, but I've read multiple places that they don't populate the County.

So does anyone know of any APIs that will take a Lat/Long and return the County associated with that location? And if you have any examples, that would be great.

I'd also like to know which APIs allow for use in a commercial application. A lot of the data I've found says that you can't use the data to make money. I might be reading those wrong, but I'm looking to build a service that I'd likely charge for that would use this data. So I'd need options. Maybe free services while I'm exploring options, and pay services down the road.

解决方案

Just for completeness, I found another API to get this data that is quite simple, so I thought I'd share.

https://geo.fcc.gov/api/census/

The FCC provides an Block API for exactly this problem and it uses census data to perform the look up.

Their usage limit policy is (From developer@fcc.gov)

We do not have any usage limits for the block conversion API, but we do ask that you try to spread out your requests over time if you can.

这篇关于查找纬度/经度的县名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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