mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* Autogenerate services.m3o.com * Openapi for all * Gen * Fix * Whaat * Fix dep * Fix * Hmm * Install make * Debug * Debug 1 * Location -> locations * Fix * Intall protoc gen micro * F * F * F * Push * Rename secret * Fix npm install * Fix script * Fix v2 * Ignore errors * Ignore v2 * F * F * F * Docs index * Add hugo theme * Hugo tania fixes * Change gen * Change gen 2 * Install hugo * Change gen * Gen fix * Change hugo install * Change hugo install * CNAME * Change articles wording * Tiny fix * Fix gen * Redoc it all * Fix gen * Fixing up protos * Fix proto * Fix gen * Fix * Trigger build * Fix copy * Openapi docs * Flatten * Changes * No date vol2 * Changes * Add make to chat * Fixes * Change * api spec * replace RSS * fix link * Dont continue on error * increase the width * use micro at master * change box colours * move some things * Pushing new readmes to see how they look like * Add skip file * Readmes * Nicer api link * Remove stutter * FIx mistake * set service font weight * Messages readme fix * add other font bold * Notes * Remove post from url * Revert "Remove post from url" This reverts commit 5fea2c23d0bafa910f5dc4d4cc63f71f578530e3. * move exampleSite to site * replace exampleSite with site * update readme * use filename for post * update index * Add source urls * set source as params * set source as params * Fix entries * Generator in go * Fixes to generator * F * Change doc gen * FIx cname * Fixing protos * Change to makefiles * Fix gen script Co-authored-by: Asim Aslam <asim@aslam.me>
1.0 KiB
1.0 KiB
This is the ETAs service. It provides ETAs for single-pickup, multi-dropoff routes. It takes into account time and traffic.
ETAs Service
Current limitations: • Only supports "Driving" (not walking, cycling) • Does not optimize route
Usage
The ETA service depends on the Google Maps API. Ensure you set the "google.maps.apikey" config value to your API key.
micro config set google.maps.apikey YOUR_API_KEY
Once set, run the service using micro run github.com/micro/services/etas.
$ micro call etas ETAs.Calculate $(cat example-req.json)
{
"points": {
"brentwood-station": {
"estimated_arrival_time": "2020-12-15T11:01:29.429947Z",
"estimated_departure_time": "2020-12-15T11:01:29.429947Z"
},
"nandos": {
"estimated_arrival_time": "2020-12-15T10:54:38.429947Z",
"estimated_departure_time": "2020-12-15T10:54:38.429947Z"
},
"shenfield-station": {
"estimated_arrival_time": "2020-12-15T10:48:34.429947Z",
"estimated_departure_time": "2020-12-15T10:48:34.429947Z"
}
}
}