You just simply need:
latitude <- map["location.lat"]
longitude <- map["location.lng"]
So far ObjectMapper supports dot notation within keys for easy mapping of nested objects (you could find it under "Easy Mapping of Nested Objects" in library documentation).