0

We are developing a shopping cart application using Xamarin Forms in visual studio 2017, Now I have list of address which is coming from rest service(swagger), Here my question is, I want to find out the shortest driving distance between current location to destination location(list of address) after that i will display map based on shortest distance by miles, Give me any suggestion to resolve this issue.

    Note: I tried that google distance matrix API while i am getting error below

    {
       "destination_addresses" : [],
       "error_message" : "You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account",
       "origin_addresses" : [],
       "rows" : [],
       "status" : "OVER_QUERY_LIMIT"
    }
P.Thiyagu
  • 917
  • 2
  • 7
  • 15
  • you will have to find a service that gives you this data. There is nothing built into either XF or the underlying platforms that does this. – Jason Mar 18 '19 at 15:28
  • sorry i am not understand, what you are saying – P.Thiyagu Mar 18 '19 at 15:34
  • you need to find a third party service that gives you this data. Like Google Directions API – Jason Mar 18 '19 at 15:38
  • Thank you for quick reply, I got your point, I will find third party service, and one more thing why can't use Google Direction API in my project without billing – P.Thiyagu Mar 18 '19 at 15:44
  • because Google chooses not to make this service free – Jason Mar 18 '19 at 15:45
  • Thank you jason, i will find third party service and i try to fix the issue, if i have any doubt let you know – P.Thiyagu Mar 18 '19 at 15:48
  • You can calculate the distance with the following method https://stackoverflow.com/questions/6544286/calculate-distance-of-two-geo-points-in-km-c-sharp – G.Mich Mar 19 '19 at 21:53
  • I need driving distance from one place to another – P.Thiyagu Mar 20 '19 at 05:58

0 Answers0