如何调用MediaWiki Api从坐标中获取缩略图和标题

如何调用MediaWiki Api从坐标中获取缩略图和标题,mediawiki,Mediawiki,我正在使用iOS设备进行媒体wiki网络呼叫,格式为- [NSString stringWithFormat:@"http://en.wikipedia.org/w/api.php?action=query&gsradius=10000&gscoord=%@%@%@&list=geosearch&gslimit=500&format=json", [latitude stringValue],@"|",[longitude stringValue]];

我正在使用iOS设备进行媒体wiki网络呼叫,格式为-

[NSString stringWithFormat:@"http://en.wikipedia.org/w/api.php?action=query&gsradius=10000&gscoord=%@%@%@&list=geosearch&gslimit=500&format=json", [latitude stringValue],@"|",[longitude stringValue]];
但这给我的结果只有“标题”和“与坐标的距离”, 我想要“标题”,“与坐标的距离”和页面上与标题对应的图像的图像url。 是否存在这样的web调用?

您可以将用作,然后从中获取:


但它没有给出距离标签,所以我回到了原点,嗯,对。但是,您可以使用
prop=pageimages |坐标
,自己计算距离。或者,您执行两次查询,分别为每个50页区块获取
pageimages
…?action=query&prop=pageimages&pilimit=500&generator=geosearch&ggsradius=10000&ggscoord=%@%@%@&ggslimit=500&format=json