使用asp.net最近邮编code搜索 [英] Nearest Zip Code Search using asp.net

查看:101
本文介绍了使用asp.net最近邮编code搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要inplement functionallity,将搜索ZIP codeS,如果用户输入的任何zip code比所有的拉链codeS接近进入拉链code将被显示。请让我们知道,如果有它的任何免费的API像谷歌API或任何其他解决方案。

I want to inplement functionallity that will search zip codes, if user enter any zip code than all the zip codes close to entered zip code will be shown. Please let us know if there is any free api for it like Google API or any other solutions.

推荐答案

首先,抓住一个免费的邮编code数据库一样的这个。这将允许您从进入拉链code转换为纬度和经度。只要你让的经度和纬度数据库键也,你现在可以查找附近所有的经度和纬度(移动起来,在排序的值下降)和所需的距离内让所有的ZIP codeS。

First, grab a free zip code database like this one. This will allow you to convert from an entered zip code to a latitude and longitude. As long as you make latitude and longitude database keys also, you can now look up all the nearby latitudes and longitudes (by moving up and down in the sorted values) and get all ZIP codes within a desired distance.

<一个href=\"http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-between-two-latitude-longitude-points\">Here是如何计算的经度和纬度的距​​离为例。

这篇关于使用asp.net最近邮编code搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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