The curved space of the megapolis