Pass user location to API

Hi!

I have an external API accepting a “location” point (lat, long) formatted as JSON. Sending it through “current location” instruction doesn’t work. Neither works combining a JSON syntax with “currentlocation’s latitude”/“currentlocation’s longitude”.

This is how the manual input works:

{ “lat”: 44.8326882, “lng”: -118.1407082 }

Does anybody knows how to make it work so that the API get it properly?

Thanks,
David