Good day. To preface my ignorance, I have only just begun using any development tools. If you need an enterprise WAN/LAN put together, I'm your guy, writing code, not so much.
To that point, I am attempting to gather a user location to be passed to a directions request as the origin. Based on the sparse documentation and WWDC videos I have this mnuch:
<snip>
let request = {
origin: "<name of a place>",
destination: annotation.coordinate,
requestsAlternateRoutes: true
};
</snip>
The destination is a user selected annotation from the map. The query functions fine. I cannot figure out how to grab the user coordinates (even with geocoder) to be turned into a "place" per the documentation.
If anybody has seen/solved this, I would be greatly interested.
Thank you in advance.