Baato value,
with a typed request-options struct per call.
Source on GitHub
baato/baato-go-clientAuthentication
Read the token from the environment, not source.
Installation
Initialisation
Usage
Geocode — search for places by keyword
Geocode — search for places by keyword
Required:
Optional:
Q (string) — the query to search for.Optional:
Limit (int) — cap the number of results.Reverse Geocode — coordinates to an address
Reverse Geocode — coordinates to an address
Required:
Lat and Lon (float) — the coordinate to look up.Nearby Places — places around a point
Nearby Places — places around a point
Required:
Type (string), Lat and Lon (float). The supported values for Type are listed on the
Nearby Places page.Directions — routes between points
Directions — routes between points
Required:
Optional:
PointsArray ([]string) as "lat,lon" pairs, and Mode (car, bike or foot).Optional:
Alternatives and Instructions (bool).Next
API reference
Every parameter, with a live playground.
Errors and status codes
What to retry, and what to fix.