// 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) } } }
// parsePath takes a location argument string and decodes it. func parsePath(path string, r *maps.SpeedLimitsRequest) { if path != "" { ls := strings.Split(path, "|") for _, l := range ls { ll, err := maps.ParseLatLng(l) check(err) r.Path = append(r.Path, ll) } } }