Skip to content
Snippets Groups Projects
Commit 0b3d4ebf authored by Felix Riehm's avatar Felix Riehm
Browse files

convert ids of location mapping json to lower case

parent 97d48643
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"strings"
"time"
)
......@@ -39,7 +40,7 @@ func (idc *Controller) Load() (worldMapDataMap map[string]Location, e error) {
// generate map from array and use this in bloxberg service
for _, worldMapEntry := range worldMapDataArray {
worldMapDataMap[worldMapEntry.Id] = Location{
worldMapDataMap[strings.ToLower(worldMapEntry.Id)] = Location{
Coordinate: worldMapEntry.Coordinate,
Country: worldMapEntry.Country,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment