[英]Google API display distance point A and B
I am currently using PHP (CodeIgniter) and tring to display distance beatween two city in my index page where are the all posts For example in every post it should display distance beatween city (New York - Boston 4587 mile 14h:59min) something like this What is the best and easiest way to do that. 我目前正在使用PHP(CodeIgniter)并尝试在索引页面中显示两个城市之间的距离拍子,例如,在每个帖子中,它应该显示城市之间的距离拍子(纽约-波士顿4587英里14小时:59分钟),像这样什么是最好,最简单的方法。 Thank you for answering :)
谢谢您的回答:)
Here is a link you can go through 这是您可以浏览的链接
http://code.google.com/apis/maps/articles/phpsqlsearch.html http://code.google.com/apis/maps/articles/phpsqlsearch.html
Even if you don't use their API, their PHP and SQL query solves most of the problem. 即使您不使用他们的API,他们的PHP和SQL查询也可以解决大多数问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.