0

$value->location->latitude$value->location->longitude分别输出 41,90693866 和 12,414128943。我有一个链接指向

href="http://maps.google.com/maps?q='.htmlentities($value->location->latitude).',+'.htmlentities($value->location->longitude).'"

问题是谷歌地图接受像 41.90693866 这样的值(注意点而不是逗号),它不适用于 41,90693866、12,414128943 输入(它适用于 41.90693866、12.414128943)。如何用逗号而不是点输出纬度/经度?

4

1 回答 1

0

The json data that I see with the Instagram API uses periods and not commas with the lat/lng data. Are you sure something in your code is not transforming the formatting? Check your code for this.

于 2013-05-06T14:14:14.773 回答