Skip to content

Commit

Permalink
Added formatted address to geocoding lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseydiloreto committed Dec 22, 2024
1 parent f7fbaa6 commit cf929a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Added
- Added formatted address to geocoding lookup results.

### Fixed
- Patched bug in multisite migration. ([#127](https://github.com/doublesecretagency/craft-googlemaps/issues/127))

Expand Down
1 change: 1 addition & 0 deletions src/helpers/GeocodingHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public static function restructureComponents(array $unformatted): array
'lat' => $lat,
'lng' => $lng,
'raw' => $unformatted,
'formatted' => ($unformatted['formatted_address'] ?? null),
];
}

Expand Down

0 comments on commit cf929a6

Please sign in to comment.