class GdsApi::PlacesManager

def places_for_postcode(type, postcode, limit = 5, local_authority_slug = nil)

def places_for_postcode(type, postcode, limit = 5, local_authority_slug = nil)
  options = { postcode:, limit: }
  options.merge!(local_authority_slug:) if local_authority_slug
  url = api_url(type, options)
  get_json(url) || []
end