I create a post. In the Edit Post UI, your plugin lets me enter lat/long. So did my previous plugin.
In “functions.php”, I’m generating a string, to be displayed at the top of each post, showing where it was posted from. I consider all posts and their locations public; I don’t know whether or not your code does, or how I would tell it.
In my previous plugin, there was a function post_google_url() I could call to get a URL to Google Maps for the post’s location. Those URLs are easy enough to construct, assuming I have lat and long as strings.
I’m not familiar with how to use the REST API in WordPress plugins — most of my programming work is non-web. If there were getPostLat() and getPostLong() functions, or if you could provide a sample of how to write one, it would be tremendously helpful. (Also, I will google “REST API in WordPress plugins” and see if that provides any clues.)
Thanks for getting back to me!