diff --git a/routing/README.md b/routing/README.md index 4f9090e..0cb04c4 100644 --- a/routing/README.md +++ b/routing/README.md @@ -14,6 +14,6 @@ The routing service provides point to point directions The following config must be set -- **routing.mode**: "google" or "osrm" +- **routing.provider**: "google" or "osrm" - **routing.address"**: location of osrm api if used - **google.apikey**: google maps api key if using google diff --git a/routing/main.go b/routing/main.go index 7cb6f01..c9aea4a 100644 --- a/routing/main.go +++ b/routing/main.go @@ -18,12 +18,12 @@ func main() { ) // decide whether to use google or osrm - c, err := config.Get("routing.mode") + c, err := config.Get("routing.provider") if err != nil { logger.Fatalf("Error loading config: %v", err) } // defaults to google - mode := c.String("google") + mode := c.String("") switch mode { case "google":