Add initial integration with stadia maps for bulk geocoding
This commit is contained in:
parent
4c856ab403
commit
5d0d75ebb1
4 changed files with 76 additions and 20 deletions
|
|
@ -30,6 +30,7 @@ var (
|
|||
PhoneNumberSupport phonenumbers.PhoneNumber
|
||||
PhoneNumberSupportStr string
|
||||
SentryDSN string
|
||||
StadiaMapsAPIKey string
|
||||
TextProvider string
|
||||
TwilioAuthToken string
|
||||
TwilioAccountSID string
|
||||
|
|
@ -152,6 +153,10 @@ func Parse() (err error) {
|
|||
if SentryDSN == "" {
|
||||
return fmt.Errorf("You must specify a non-empty SENTRY_DSN")
|
||||
}
|
||||
StadiaMapsAPIKey = os.Getenv("STADIA_MAPS_API_KEY")
|
||||
if StadiaMapsAPIKey == "" {
|
||||
return fmt.Errorf("You must specify a non-empty STADIA_MAPS_API_KEY")
|
||||
}
|
||||
TextProvider = os.Getenv("TEXT_PROVIDER")
|
||||
switch TextProvider {
|
||||
case "":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue