Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
/ go-yolp Public archive

Go Client Library for Yahoo! Open Local Platform API

License

Notifications You must be signed in to change notification settings

ngs-archives/go-yolp

Repository files navigation

go-yolp

Build Status GoDoc Go Report Card Coverage Status

Go Client Library for Yahoo! Open Local Platform API

How to Use

go get -u github.com/ngs/go-yolp
package main

import (
	"fmt"
	"log"

	yolp "github.com/ngs/go-yolp"
)

func main() {
	client, err := yolp.NewFromEnvionment()
	if err != nil {
		log.Fatal(err)
	}
	req := client.ReverseGeocoder(yolp.GeocoderParams{
		Latitude:  35.62172852580437,
		Longitude: 139.6999476850032,
		Datum:     yolp.WGS,
	})
	res, err := req.Do()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Feature[0].Property.Address)
}
export YDN_APP_ID=${YDN_APP_ID}
export YDN_SECRET=${YDN_APP_SECRET}

# go run foo.go

Coverage

Author

Atsushi Nagase

License

See LICENSE

About

Go Client Library for Yahoo! Open Local Platform API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages