Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 调用geonames最近的地震Web服务_Javascript_Json_Geolocation_Geocoding - Fatal编程技术网

Javascript 调用geonames最近的地震Web服务

Javascript 调用geonames最近的地震Web服务,javascript,json,geolocation,geocoding,Javascript,Json,Geolocation,Geocoding,我有一个地方的经纬度坐标。 如何使用参数调用下面的Web服务:北、南、东、西。 有什么想法吗?谢谢 Recent Earthquakes Webservice Type : REST Url : api.geonames.org/earthquakesJSON? Parameters : north,south,east,west : coordinates of bounding box callback : name of javascript function (optional para

我有一个地方的经纬度坐标。 如何使用参数调用下面的Web服务:北、南、东、西。 有什么想法吗?谢谢

Recent Earthquakes
Webservice Type : REST
Url : api.geonames.org/earthquakesJSON?
Parameters : north,south,east,west : coordinates of bounding box
callback : name of javascript function (optional parameter)
date : date of earthquakes 'yyyy-MM-dd', optional parameter, earthquakes older or equal the given date sorted by date,magnitude
minMagnitude : minimal magnitude, optional parameter
maxRows : maximal number of rows returned (default = 10)

Result : returns a list of earthquakes, ordered by magnitude

Example http://api.geonames.org/earthquakesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&username=demo

不能使用ajax获取不在域中的页面。您可以在自己的服务器上代理请求(注意,只允许显式的白名单域),或者如果Web服务支持,则必须使用