Skip to content

Commit

Permalink
Lägg till locationstrings till nearby api
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed Jun 2, 2024
1 parent 654e2b6 commit 09a90dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public function eventsNearby(Request $request, Response $response) {
"description" => $item->description,
"content" => $item->parsed_content,
"locations" => $item->locations,
"location_string" => $item->getLocationString(),
"location_string_2" => $item->getLocationString(true, true, false),
"lat" => (float) $item->location_lat,
"lng" => (float) $item->location_lng,
"viewport_northeast_lat" => $item->viewport_northeast_lat,
Expand Down

0 comments on commit 09a90dc

Please sign in to comment.