The premise:
I'm building an app for my nonprofit that calculates the distance travelled for a work visit. From the amount of kilometres driven, we then calculate the expenses we need to pay out to colleagues.
What I've got:
I managed to make this all work using 'Bingmaps.Getroute'.
For this part I only needed 2 text inputs with addresses. I noticed they only needed to fill out a minimum of info, that being street name and locality, with house number and postal code being optional (we don't use states).
Kilometres * price per kilometre = amount to receive
Easy peasy
GREAT!
What I can't get done:
As this Getroute calculation just puts out a number of km's, and wanted to show this route on a map, so they can double check if it matches the reality of the route they travelled.
What I've tried:
The Getmap and GetmapV2 fuctions only seem to work with latitude an longtitude.
The Getroute just calculates, I can't get it to show a map in a image frame
I also found this URL
https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0=Seattle,WA;64;1&wp.1=Redmond,WA;66;2&key={BingMapsAPIKey}
But for this I need to separate street, house number, postal code and locality in different datacards
Help?!
As Bing is clearly able to get a route very easily from a string of info in one text field, how do I get it to translate that into a map? What am I missing? I've googled myself cross-eyed, and keep getting the options to get a static map, or to calculate with coordinates. I'm getting heart palpitations, please help.