Map marker location from external API

I’m trying to plot a series of locations on a map, using data from an external API.

It seems that one of the fields in the API response needs to be set to Geographic Location field type in order to use it as the marker location.

What format is that field type expecting? I control the external API so the data can be sent in any format required.

Maybe there’s a completely different way to approach this?

Initialization like this should work with the map.

Yes, I figured so but I have lat long coordinates, can these be used instead of an address?

A customised map would work in this case. You can find a few on the plugins tabs that accept that formatting. At the core of Google map it actually accepts lat and lng so the plugins are doing conversions in the backend.