diff --git a/okapi.cpp b/okapi.cpp index 1f2e8ce..2f3e6a2 100644 --- a/okapi.cpp +++ b/okapi.cpp @@ -162,7 +162,7 @@ Caches Okapi::get_caches(const std::set& codes) const { c.terr = el.value()["terrain"]; c.owner = el.value()["owner"]["username"]; c.owner_uuid = el.value()["owner"]["uuid"]; - c.pos = Position(el.value()["location"]); + c.pos = Position(el.value()["location"].get()); c.origin = service; c.fav = el.value()["recommendations"]; if (!el.value()["rating"].is_null()) c.rating = el.value()["rating"];