与 bing/google 地理编码集成的位置搜索自动完成功能 [英] Location search autocomplete that integrates with bing/google geocoding

查看:18
本文介绍了与 bing/google 地理编码集成的位置搜索自动完成功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于自动完成位置搜索,与 Google 或 Bings 位置数据等集成的任何好的建议?

Any nice suggestions on auto complete location searches, that integrate with something like Google or Bings location data?

我想在注册时捕获我的用户的位置,目前我有一个自由文本输入框.我想要某种自动完成功能来引导用户输入更多经过清理的信息,理想情况下我也想对用户进行地理编码.

I am wanting capture the location of my users on sign up, currently I have a free text input box. I am wanting to have some sort of auto complete that guides the user to inputting more sanitised information, ideally I would like to geo-code the user too.

我目前正在使用 jQuery autocomplete 进行自动搜索,但这需要我提供我没有或不想维护的位置数据.

I'm currently using the jQuery autocomplete for the autosearch, but this requires me to provide the location data, which i dont have or want to maintain.

推荐答案

如果你不想维护自己的位置数据库(对你有好处!),那么你可以看看 Freebase 和他们的 Freebase Suggest jQuery 插件.他们会为您完成所有自动完成,甚至是建议用户界面,您可以指定您只想自动完成位置(或仅美国县,或其他).

If you don't want to maintain your own database of locations (good for you!), then you might look at Freebase and their Freebase Suggest plugin for jQuery. They'll do all the auto-completion and even the suggestion UI for you and you can specify that you just want to auto-complete locations (or only US counties, or whatever).

存在可以提供位置名称数据库但不会为您执行自动完成 UI 的地名词典.例如,GeoNames 有一组很好的 网络服务,你可以匹配 jQuery Autocomplete.

There exist gazetteers who can provide the database of location names but won't do the auto-complete UI for you. GeoNames, for example, has a nice set of web services, which you could match up with jQuery Autocomplete.

这篇关于与 bing/google 地理编码集成的位置搜索自动完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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