使用谷歌api获得距离 [英] Getting distance using google api
问题描述
您好
如何获得两个邮政编码之间的距离(以英里为单位)使用谷歌API?
How can I get the distance (in Miles) between two postcodes usisng google API?
谢谢
关注
推荐答案
您好
Hi
如何获得两个邮政编码之间的距离(以英里为单位)使用谷歌API?
How can I get the distance (in Miles) between two postcodes usisng google API?
谢谢
问候
我无法直接回答你的问题,但如果你需要一个能够返回"当乌鸦飞来飞去"的功能。两个纬度/经度对之间的距离,我可以发布。
I can't answer your question directly, but if you need a function that will return the "as the crow flies" distance between two lat/lon pairs, I can post that.
我确实有一些东西可以用美国邮政编码来做,但是我必须把它挖出来(它有效)在确定每个邮政编码的纬度/经度时,然后使用与之前相同的功能。)
I actually do have something that will do it with U.S. Zip codes, but I'd have to dig that up (it works on figuring out the lat/lon of each zip code, then does uses the same function as before).
这篇关于使用谷歌api获得距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!