非地图使用的GeoCoding提供程序 [英] GeoCoding providers for non-map use

查看:68
本文介绍了非地图使用的GeoCoding提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找GeoCoding提供者有两个目的:

  1. 地址解析(将长字符串转换为地址成分)
  2. 地址验证(确保地址确实存在)

我需要首先支持北美地址,但也要打开国际地址的大门.

我不会在地图上或Web应用程序中显示此信息,这使我有点束手无策,因为诸如Google Maps和Yahoo Maps之类的服务要求您显示在其服务上查找的任何信息. /p>

Wikipedia在此处包含了一个不错的可用地理编码提供者列表.我的问题是:

  1. 是否存在可靠/简便的方法来将地址解析为组件?我宁愿将此逻辑嵌入到我的应用程序中,而不必依赖于第三方供应商.

  2. 最终,我需要添加地址验证(使用地图,但不在Webapp中).那时,您建议我做什么?

解决方案

是否有可靠/容易的方法将地址解析为组件? ID 宁愿将此逻辑嵌入到我的应用程序中,而不必 取决于第三方提供商.

不. 您可以随时尝试,但最终会失败.地址没有通用的行星标准,并非每个国家都使用英文地址,这增加了任务的复杂性.在美国,有3.11亿人,在世界上有近70亿人,现在想到它可以代表的不同地址.

最终,我需要添加地址验证(带有地图,但不在 一个webapp).那时,您建议我做什么?

我会使用Google Maps API V3,但由于违反您的情况,我将尝试其中一种付费服务来进行地址解析/验证(甚至有免费服务,但它们的可靠性较差).我认为这是您所能做的最好的事情.

在您的情况下,唯一可以100%确定地址是否存在并有效的方法是手动检查地址,然后进行实际检查;)

I'm looking for a GeoCoding provider for two purposes:

  1. Address parsing (convert a long String into address components)
  2. Address validation (make sure the address really exists)

I need to support North America addresses first, but keep the door open for international addresses as well.

I won't be displaying this information on a map or in a webapp, which puts me in a bit of a bind because services like Google Maps and Yahoo Maps require you to display any information you look up on their services.

Wikipedia contains a nice list of available geocoding providers here. My question is:

  1. Is there a reliable/easy way to parse an address into component? I'd prefer embedding this logic into my application instead of having to depend on a 3rd-party provider.

  2. Eventually I'll need to add address validation (with a map but not in a webapp). At that point, what do you recommend I do?

解决方案

Is there a reliable/easy way to parse an address into component? I'd prefer embedding this logic into my application instead of having to depend on a 3rd-party provider.

No. You can always try to do it, but it will eventually fail. There is no universal planetary standard for addresses and not every country uses English addresses which add to the complexity of the task. There are 311 millions peoples in the USA and nearly 7 billion people in the world, now think of the different addresses it can represent.

Eventually I'll need to add address validation (with a map but not in a webapp). At that point, what do you recommend I do?

I would use Google Maps API V3 but since it's against the rules in your case, I would try one of the paid service available out there for address parsing/validation (there are even free ones but they are less reliable). I think it's the best you can do.

In your case the only way to be 100% sure if the address exists and is valid would be to check it manually and then go there physically ;)

这篇关于非地图使用的GeoCoding提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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