Added CRU operations for locations
populate the map with data from an endpoint