Oct 16, 2022 11:54 AM
@Bill.French @ScottWorld I have installed the maps extension and successfully set up a field with the static map API to generate a static map based on an address and populate an image of that map as an attachment in a field for each record.
How do I get this to run automatically when a new record is created or a new record enters a specific view?
I have tried using the script from the extension in a script automation triggered by an event (new record, record enters a view etc.) and it doesn’t like the script from the extension
Oct 16, 2022 01:50 PM
You probably need a script automation that repeats the process and I’m not sure it can be done. I never use Google Maps or the maps extension because (a) Google is pricey, and (b) Mapbox is more programmable and able to work a little easier in event-driven processes.
Oct 16, 2022 02:59 PM
I don’t know JavaScript.
If it were me, I would just do this without any coding by using Make.com to “get a static map image” from Google Maps.
This feature is built directly into Make:
MapBox isn’t supported by either Make or Zapier, but you could always create your own custom HTTP calls to MapBox by using the HTTP module:
Oct 16, 2022 03:25 PM
I have spent 30 minutes on Make and it seems more complicated than setting stuff up in Airtable
Oct 16, 2022 03:30 PM
What are you having difficulty with? It’s mostly drag-and-drop. Post a screenshot of what you’re trying to do.
Oct 16, 2022 03:34 PM
just simply trying to get Make to use an address from a field in airtable, to use the google maps static map image feature and then return the static image to an attachment field in airtable for the same record
Oct 16, 2022 04:34 PM
I know, that’s the same thing that you said in your original post.
If you know how to craft your own API calls with the HTTP module, MapBox might be easier, like @Bill.French said. You may even want to do this with DataFetcher.com.
Otherwise, I have this working just fine with Make & Google Maps – below is what it looks like.
You’re probably getting stuck because Google Maps returns an image, but Airtable requires a URL. That’s why you always need to upload your images to a cloud drive first to get a valid URL:
Oct 16, 2022 06:28 PM
If you don’t instinctively know exactly what to do to address this requirement using automation script and MapBox, you are unlikely to succeed at the approach I use. That leaves you with three outs -
As to #1, I’m slammed until mid 2024, but there are a lot of great consultants here in the community.
As a newcomer to that platform, to master Make to solve this challenge, you’ll need at least 16 times that effort. This is why Make consultants are so valuable - they charge a lot, but they get the project on its feet in minutes.
Oct 18, 2022 06:16 PM
got this set up today as a scripted automation in Airtable with about 30 minutes of support from https://www.vivid-squid.com
Oct 18, 2022 06:31 PM
Excellent. You should share your approach here so others can follow in your footsteps.