ballerinax/geonames Ballerina library

1.3.1

Overview

This is a generated connector for Geonames API OpenAPI specification. The Geonames API allows you to retrieve information about geo locations.

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

Metadata

Released date: 10 months ago

Version: 1.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 

Current verison: 0


Weekly downloads


Source repository


Keywords

IT Operations/Geographic Information Systems
Cost/Freemium

Contributors

Other versions