简体   繁体   English

Google API显示距离点A和B

[英]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.

相关问题 如何使用PHP和Google API计算沿特定路径从A点到B点的总距离? - How do I calculate total distance from Point A to point B along a certain path using PHP & the google API? 使用谷歌地图,PHP和MySQL从A点到B点的距离 - Distance from point A to B using Google Maps, PHP and MySQL 是否有数学计算可以通过谷歌的 Elevation API 来定义点 A 和点 B 之间是否存在可见性? - Is there a mathematical calculation to define if there is visibility between a point A and a point B via google's Elevation API? Php通过实时地图显示获取两个自定义点谷歌地图之间的距离 - Php get distance between two custom point google map with Live map display 谷歌地图 - 与折线的点距离 - Google Maps - point distance from polyline 消息:未定义的属性:stdClass::$distance Google Distance API - Message: Undefined property: stdClass::$distance Google Distance API Google Maps API距离矩阵请求 - Google Maps API Distance Matrix Requests 计算2个位置谷歌地图Api之间的距离 - Calculate the distance between 2 position Google maps Api Google Maps Api单击以添加地图点 - Google Maps Api Click to Map Point Add 在 Google 地图中是否可以从 a 点(例如沃尔玛)到 b 点(例如洛杉矶)? - Is point a (ex. walmart) to point b (ex. los angeles) possible in Google Maps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM