Can anyone weigh in on best practice around geocoding location data?
We have several hundred “locations” (and growing) that are regularly inserted into the database.
We will occassionally run queries to plop these on a Google Maps using the Javascript API.
Do you think it’s better to geocode these addresses when they’re inserted into the database (ie, add lng and lat fields and populate and store these–addresses won’t be modified manually) or call a geocoding service whenever we are generating our maps?
Storing the long/lat values will be much faster when it comes to use them. As long as you’re happy they wont be moving around on their own between data entry and map drawing then do that.