@datafire/geodatasource

3.0.0 • Public • Published

@datafire/geodatasource

Client library for GeoDataSource Location Search

Installation and Usage

npm install --save @datafire/geodatasource
let geodatasource = require('@datafire/geodatasource').create();

.then(data => {
  console.log(data);
});

Description

GeoDataSource™ Web Service is a REST API enable user to lookup for a city by using latitude and longitude coordinate. It will return the result in either JSON or XML containing the information of country, region, city, latitude and longitude. Visit https://www.geodatasource.com/web-service for further information.

Actions

city.get

Get City name by using latitude and longitude

geodatasource.city.get({
  "key": "",
  "lng": 0,
  "lat": 0
}, context)

Input

  • input object
    • key required string
    • lng required number
    • lat required number
    • format string (values: json, xml)

Output

  • output string

Definitions

This integration has no definitions

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/geodatasource

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

4.19 kB

Total Files

4

Last publish

Collaborators

  • datafire