阅读背景:

将HTML5地理位置结果发送回Node / Express Server

来源:互联网 

I am using HTML5 geolocation to retrieve a users lat/lng, and would like to pass it back to the server to compare it against a list of shop lat/lngs coords and return the nearest five . The geolocation API is returning the lat/lng cooridinates client side with no issue at all, I just cannot find a way to return the information back to the server and render a new page at the same time. I have tried using $.post method, attaching the coords to data: object. I am using HTML5 geolocation to retrieve a user




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: