Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when address isn't found #380

Open
ragnarfrosti opened this issue Oct 12, 2023 · 2 comments
Open

TypeError when address isn't found #380

ragnarfrosti opened this issue Oct 12, 2023 · 2 comments
Labels

Comments

@ragnarfrosti
Copy link

The function nomalizeLocation throws an error if the $location is a string and the method self::latLngFromAddress doesn't find any result and returns null

Screenshot 2023-10-12 at 14 47 34

@MattWilcox
Copy link

I'm also hitting this issue - when searching a location that does not exist, this is thrown.

Screenshot 2023-12-13 at 11 17 38

@MattWilcox
Copy link

PS; Having spotted that there are a number of open issues related to this, and even a pull-request fix that's been around for a while unaccepted... if Ether are wanting to retire from maintaining this ...

https://discord.com/channels/456442477667418113/575387375610626063/1184480879964323860

Tam added a commit that referenced this issue Apr 4, 2024
### Fixed
- Fix referred on Mapbox geo requests (Fixes #338, via @maxdmyers)
- Fix type errors in front-end usage (Fixes #379, via @samhibberd)
- Fix error when normalizing invalid location (Fixes #368, #380, via @Decyphr)
- Fix intermittent issues w/ Google Maps API loading (Fixes #294, via @davidwebca)
- Allow nullable zoom value (Fixes #381)
- Pass site language to embedded Google map (Fixes #373)
- Support casting map to string (Fixes #362)
- Remove reference to MaxMind Lite from docs (Fixes #358)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants