I'm trying to make a maps call from my ionic framework app. In my html file I use:
<a ng-href="maps://?q={{dest.Latitude}},{{dest.Longitude}}">Maps</a>
<div>{{dest.Latitude}},{{dest.Longitude}}</div>
In my controller the data for dest
looks like this:
{"Latitude":12.34567, "Longitude":1.23456}
The latitude and longitude are shown in the div correctly.
But I get an error if I click on the link:
Failed to load webpage with error: The URL can't be shown
I also tried to cast the lat and long to string but it had no effect on it.
If I use static geocordinates like this everything works fine:
<a ng-href="maps://?q=12.34567,1.23456">Maps</a>
What am I missing?