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

Latest commit

 

History

History
84 lines (67 loc) · 3.23 KB

README.md

File metadata and controls

84 lines (67 loc) · 3.23 KB

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