# README
yandex-geocode-client
First, ensure the library is installed and up to date by running
go get -u github.com/Go-Java-Go/yandex-geocode-client
.
Second, you mast be get api key JavaScript API и HTTP Геокодер
Third, you mast get acquainted documentation
Example
package main
import (
"github.com/rs/zerolog/log"
yg_client "github.com/Go-Java-Go/yandex-geocode-client"
)
func main() {
client, err := yg_client.NewClient(yg_client.Config{
APIKey: "887d760f-df46-420a-949d-74da00e47fe5",
Host: "https://geocode-maps.yandex.ru/",
ApiVersion: "1"})
if err != nil {
log.Error().Err(err).Msg("")
}
resp, err := client.Geocode().Search(yg_client.SearchBaseRequestParams{Geocode: "Москва", Lang: ruRU, ResponseFormat: JSON, Sco: latLong})
if err != nil {
log.Error().Err(err).Msg("")
return
}
}
# Constants
ErrCodeMarshalRequest impossible to serialize request body.
ErrCodeRequestCreation impossible create a request.
ErrCodeRequestExecution impossible execute a request.
ErrCodeResponseReadBody impossible to read the response body.
ErrCodeResponseStatusCode the response status code is not conform.
ErrCodeResponseUnmarshalBody impossible deserialize the response body.
ErrCodeUnknown default error code, undefined.
ErrCodeURLParsing impossible to parse url parameters.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Config configure the Geocode.
Error is the internal error structure that all exposed method use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
ErrCode are all possible errors found during requests.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author