I am working on google place API for getting near location list of user's current location. I am succeed in getting the list in particular radius of user's current location. I want this list of location in ascending of distance.So location which is near to me should be display on top of list. Here is what I have done till now with the use of Google Place Textsearch API.
Here I have used latitude and longitude of my current location. radius is in which I want to search location.And I have also used rankBy=distance for getting list in order of distance but I can not get location in ascending order. Any help will be appreciated.