duanhuan3012 2011-12-18 05:02
浏览 21
已采纳

PHP中的邮政编码邻近度计算

I've seen all sorts of "store locator"-type solutions on the Web for finding, for example, stores within a given radius of a particular Zip Code, and they have fancy maps that display the nearest stores, etc. Many use Google Maps or other databases, but many also rely on exact latitude and longitude conversions, etc. But that's all overkill for my project.

In my case, I'm just processing orders on the back end (using PHP) and I already have a list of all the ZIP Codes of all of my vendors' warehouses.

I simply want my customer to provide their Zip Code and with a single call I'd like to get back a sorted list of the warehouses nearest to my customer. Zip Codes are good enough - I don't wanna bother with latitude and longitude.

Any ideas?

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 模型导入SP后贴图纹理只有一个,拆了四张UV的,怎么解决?
      • ¥15 检索带order by 非常慢
      • ¥20 python 爬虫 token 加密方式
      • ¥20 IAR环境报错reading CPU status failed
      • ¥15 数组问题,刚学C语言
      • ¥20 Python如何读取指定播放设备的音频帧?
      • ¥15 用dnspy修改游戏数据报错
      • ¥15 关于unity打包成webgl后页面上不显示服务端接收到的数据的问题
      • ¥16 (大一)有偿 想学会 excel数据处理和分析🥹
      • ¥15 matlab导入工具箱提示:此类型的变量不支持使用点进行索引错误