mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-14 11:44:42 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -18,14 +18,18 @@ type GeocodingService struct {
|
||||
|
||||
// Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results
|
||||
func (t *GeocodingService) Lookup(request *LookupRequest) (*LookupResponse, error) {
|
||||
|
||||
rsp := &LookupResponse{}
|
||||
return rsp, t.client.Call("geocoding", "Lookup", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
// Reverse lookup an address from gps coordinates
|
||||
func (t *GeocodingService) Reverse(request *ReverseRequest) (*ReverseResponse, error) {
|
||||
|
||||
rsp := &ReverseResponse{}
|
||||
return rsp, t.client.Call("geocoding", "Reverse", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
type Address struct {
|
||||
|
||||
Reference in New Issue
Block a user