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

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

问题描述

这是自动完成的位置搜索任何好的建议,与类似谷歌或Bings位置数据集成?

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

我想捕捉我的用户注册时的位置,目前我有一个免费的文本输入框。我希望有一些自动完成的,引导用户输入更多信息SANITIZED,理想情况下,我想地理code用户了。

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 自动完成,在自动搜索,但是这需要我提供位置数据,这我没有或想保持。

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建议的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).

有存在方志谁可以提供位置名称的数据库,但你不会做自动完成用户界面。 GeoNames的,例如,有一个很好的集合的 Web服务,它可以使用jQuery自动完成匹配。

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.

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

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