Home  >  Article  >  Backend Development  >  饿了么,美团外卖这个是怎么生成的啊?

饿了么,美团外卖这个是怎么生成的啊?

WBOY
WBOYOriginal
2016-06-06 20:10:441706browse

像这两个地址,是定位之后的,我想问下,wt3tnnudg0xn,wtw3snpky49像这样参数是怎么生成的啊,这个应该是根据lng,lat(114.902514,30.45855)经纬度生成唯一的标示。php用什么算法可以生成啊?

http://i.waimai.meituan.com/home/wt3tnnudg0xn
https://m.ele.me/place/wtw3snpky49

在线等大神啊

回复内容:

像这两个地址,是定位之后的,我想问下,wt3tnnudg0xn,wtw3snpky49像这样参数是怎么生成的啊,这个应该是根据lng,lat(114.902514,30.45855)经纬度生成唯一的标示。php用什么算法可以生成啊?

http://i.waimai.meituan.com/home/wt3tnnudg0xn
https://m.ele.me/place/wtw3snpky49

在线等大神啊

geohash算法原理及实现方式

http://www.cnblogs.com/dengxinglin/archive/2012/12/14/2817761.html

是有一定的算法的geoHash算法

https://github.com/Eleme/geohash

https://github.com/cevin/geohash

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn