// parsePlacesIds takes a placesIds argument string and decodes it. func parsePlaceIDs(placeIDs string, r *maps.SpeedLimitsRequest) { if placeIDs != "" { ids := strings.Split(placeIDs, ",") for _, id := range ids { r.PlaceID = append(r.PlaceID, id) } } }