cheesegrits / filament-google-maps

Google Maps package for Filament PHP
247 stars 71 forks source link

Ability to save geocoded data into database #104

Closed DaniSimeonov closed 6 months ago

DaniSimeonov commented 6 months ago

Firstly, I would like to commend you on your work here! The plugin simplifies maps tremendously.

It seems as if the recommended usage is to save lat/long coordinates in the database, and then use them to draw markers on a map (fair enough), but to also geocode them via google maps API into a computed field (for the actual address name) - EVERY SINGLE TIME a user loads the form.

Am I understanding this correctly? Is there a reason to be doing so many API calls? What I would rather do is save the human readable location name in a separate column for reference. Is there an easy way to do this?

P.S. I am quite new to Laravel and Filament - my question might be a testament to not fully grasping Filament yet. w