ballerinax/geonames Ballerina library

1.3.2

Overview

The Geonames API connector(https://www.geonames.org/export/JSON-webservices.html) OpenAPI specification. The Geonames API allows you to retrieve information about geo locations.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Geonames connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

Import the ballerinax/geonames module into the Ballerina project.

Copy
import ballerinax/geonames;

Step 2: Create a new connector instance

You can use your organization name for authentication:

Copy
geonames:ApiKeysConfig apiKeyConfig = {
    username: <USERNAME>
};

geonames:Client baseClient = check new Client(apiKeyConfig);

Step 3: Invoke connector operation

  1. You can search about a term.
    Copy
    geonames:SearchResponse score = check baseClient->search("sanfrancisco");
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/geonames;Copy

Other versions

Metadata

Released date: 3 days ago

Version: 1.3.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 29

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/GeoNames

Area/Cloud & Infrastructure

IT Operations/Geographic Information Systems

Cost/Freemium


Contributors