英国邮政编码查找字段覆盖一系列地区

发布于 2024-12-03 02:30:10 字数 422 浏览 2 评论 0原文

需要针对英国某个地区的地区范围选择器的一些有效解决方案。假设我选择了曼彻斯特,它涵盖了许多小地区,例如 M1、M2、M3.....M20、M30... 我的用户可以分担曼彻斯特某些地区的责任,例如从 M1 到 M10,另一个用户可以分担 M11至 M21。他们也可以有多个区域,如曼彻斯特(M)、阿伯丁(AB)等,即使这样,也需要范围。

如何为其开发接口,以便它在 mysql DB 上创建最小负载,并方便用户添加大量具有所需分区范围的区域。

所有选定的邮政编码范围都将添加到数据库中,并且邮政编码信息将与每个邮政编码信息进行匹配,以便可以参考负责人。

如需更多想法:http://screencast.com/t/6qwCVhKA

提前致谢

Need some efficient solution of district range selector for an area in UK. Lets say I selected Manchester which covers many small districts like M1,M2,M3.....M20, M30... My users can be sharing responsibility of some of the districts of Manchester like from M1 to M10 and another user with M11 to M21. Also they can have multiple areas like Manchester(M), Aberdeen(AB) and so on and the range will be needed even then.

How to develop the interface for it so that it should create minimum load on mysql DB as well as handy for user to add a lots of areas with their desired district range.

All selected range postcodes will be added in DB and postcode info will be matched against each one so that the person responsible can be referenced.

For more idea: http://screencast.com/t/6qwCVhKA

thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光磨忆 2024-12-10 02:30:10

听起来您应该将邮政编码分为地区、地区和扇区。所以你有

area | district | sector
------------------------
M    | M1       | M1 0AA
M    | M2       | M2 0AA
M    | M3       | M3 0AA

等等,这将使你能够按你想要的任何级别进行参考。

的第 17 页和 < a href="http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom" rel="nofollow">维基百科,这实际上是非常准确的。

It sounds like you should be breaking the postcodes down into area, district and sector. So you have

area | district | sector
------------------------
M    | M1       | M1 0AA
M    | M2       | M2 0AA
M    | M3       | M3 0AA

etc, this will enable you to reference by whatever level you want.

It's described in more detail on page 17 of this and on wikipedia, which is actually very accurate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文