api

package
v0.0.0-...-6aca795 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2015 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api implements a client for Mapillary API version 2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// HTTPClient is the client to perform the HTTP requests.
	HTTPClient *http.Client
	// URL is the location of the Mapillary API.
	URL url.URL
	// ID is the identifier of the client.
	ID string
}

Client is a client to make requests to the Mapillary API version 2.

func NewClient

func NewClient(ID string) *Client

NewClient constructs a new API client with the default URL.

func (*Client) Get

func (c *Client) Get(path string, params url.Values, response interface{}) error

Get performs an HTTP Request to the Mapillary API.

func (*Client) Request

func (c *Client) Request(method, path string, params url.Values, response interface{}) error

Request performs an HTTP Request to the Mapillary API.

type GetSearchImRandomSelect

type GetSearchImRandomSelect struct {
	Ca         float64
	CapturedAt float64 `json:"captured_at"`
	Key        string
	Lon        float64
	Lat        float64
	Location   string
	User       string
}

GetSearchImRandomSelect is the response type of search/im/randomselected get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL