Home >Backend Development >PHP Tutorial >如何获取百度坐标api返回的json格式字符串或对象呢

如何获取百度坐标api返回的json格式字符串或对象呢

WBOY
WBOYOriginal
2016-06-13 11:28:201092browse

怎么获取百度坐标api返回的json格式字符串或对象呢
json不怎么熟,比如调用这个接口http://api.map.baidu.com/ag/coord/convert?from=2&to=4&x=116.40624058825688&y=39.90789300648029&callback=callback获得返回的数据是这样的callback&&callback({"error":0,"x":"MTE2LjQxMjYxOTYwMDc1","y":"MzkuOTE0MjIxMTQyNDM3"})
想得到x,y后面的加密数据,注意坐标比较多,需要批量
最好写个示例啊,

JSON callback API 百度
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn