Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取地理位置(纬度和经度)信息
http://api.flickr.com/services/rest/?method=flickr.photos.search&per_page=10&nojsoncallback=1&format=json&tags=flower&api_key=00af42177056c5b71bda9bd49938c1
我希望它以 json 格式输出图像的地理定位
谢谢
flickr.photos.geo.getLocation(apikey, photo_id, flags)
将返回类似:
<photo id="123"> <location latitude="-17.685895" longitude="-63.36914" accuracy="6" /> </photo>
您可以轻松地将其解析为 JSON 字符串