k
k
ksoft.js
Search…
Kumo
This is advanced real-time information API for geo-spatial, weather and information gathering data

Current Weather

1
ksoft.kumo.weather(location, options);
Copied!
Usage
Examples
Parameter
Type
location
String (city name or coordinates)
options.units
String: "si" | "us" | "uk2" | "ca" | "auto"
options.lang
String (find avaible langs here)
Success: WeatherReport
Not Found: throws Error
1
ksoft.kumo.weather('-21.4, 13.2')
2
.catch(err => console.log(err.message));
Copied!
1
ksoft.kumo.weather('Berlin, Germany', { units: 'si', lang: 'de' });
Copied!

GeoIP lookup

1
ksoft.kumo.geoip(ip);
Copied!
Usage
Example
Parameter
Type
ip
String
Success: Returns IPRecord
1
ksoft.kumo.geoip('1.1.1.1');
Copied!

Currency Conversion

1
ksoft.kumo.convert(value, from, to);
Copied!
Usage
Example
Parameter
Type
value
Number
from
String (of these)
to
String (of these)
Success: Returns Conversion
1
ksoft.kumo.convert(12.20, 'EUR', 'USD');
Copied!
Last modified 1yr ago