Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Latest commit

 

History

History
86 lines (58 loc) · 2.94 KB

README.md

File metadata and controls

86 lines (58 loc) · 2.94 KB

Go API client for locationiq

LocationIQ provides flexible enterprise-grade location based solutions. We work with developers, startups and enterprises worldwide serving billions of requests everyday. This page provides an overview of the technical aspects of our API and will help you get started.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./locationiq"

Documentation for API Endpoints

All URIs are relative to https://eu1.locationiq.com/v1

Class Method HTTP request Description
AutocompleteApi Autocomplete Get /autocomplete.php
BalanceApi Balance Get /balance.php
DirectionsApi Directions Get /directions/driving/{coordinates} Directions Service
MatchingApi Matching Get /matching/driving/{coordinates} Matching Service
MatrixApi Matrix Get /matrix/driving/{coordinates} Matrix Service
NearestApi Nearest Get /nearest/driving/{coordinates} Nearest Service
ReverseApi Reverse Get /reverse.php Reverse Geocoding
SearchApi Search Get /search.php Forward Geocoding

Documentation For Models

Documentation For Authorization

key

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author