Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.

parse_city

Function: parse_city
  Extract a city from a full US address.

Examples:

  parse_city("123 Main St\nSometown, NY 12345")
  -- Result: "Sometown"

  parse_city("Not an address")
  -- Result: {"type":"address_parse_failed","english":"Unable to parse an address from \"Not an address\"","data":{"value":"Not an address"}}




Signatures
text -> text