通过 CloudMade 获得美国各州的几何坐标
我需要获取美国各州的几何坐标。 我使用 CloudMade API,它适用于大多数州,但对于其他几个州,我找不到坐标 - CouldMade API 返回其他地方的多个结果,而不是州。
这是无法很好处理的状态列表。
CONNECTICUT
GEORGIA
HAWAII
FLORIDA
LOUISIANA
MARYLAND
MISSISSIPPI
NEW JERSEY
NORTH CAROLINA
NORTH DAKOTA
SOUTH CAROLINA
SOUTH DAKOTA
有谁知道,是否可以使用 CouldMade 服务或任何其他地理编码服务获取这些州的地理坐标?
I need to get geometry coordinates of the USA states.
I use CloudMade API and it works well for the most states, but for several others I can't find coordinates - CouldMade API returns multiple results for other places, not states.
I use the requests like this one:
http://geocoding.cloudmade.com/e485574f2cf2424aac17f42908aa2ce3/geocoding/v2/find.js?query=HAWAII&return_geometry=true
Here is the list of states which couldn't be processed well.
CONNECTICUT
GEORGIA
HAWAII
FLORIDA
LOUISIANA
MARYLAND
MISSISSIPPI
NEW JERSEY
NORTH CAROLINA
NORTH DAKOTA
SOUTH CAROLINA
SOUTH DAKOTA
Does anybody know, is it possible to get the geo coordinates of these states using CouldMade service or any other geocoding services?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。这是正确的请求格式(查询参数应包含“county”前缀):
http://geocoding.cloudmade.com/BC9A493B41014CAABB98F0471D759707/geocoding/v2/find.js?return_location=true&results=10&skip=0&query=county:CONNECTICUT&return_geometry=true
Question is solved. Here is the correct request format (query parameter should contains 'county' prefix):
http://geocoding.cloudmade.com/BC9A493B41014CAABB98F0471D759707/geocoding/v2/find.js?return_location=true&results=10&skip=0&query=county:CONNECTICUT&return_geometry=true