You'd have to do most of the legwork yourself, the APIs aren't going to do every function under the sun for you.
However, I know that you can find the distance between two points using the Google Maps API. Take a look at the distanceFrom
method in the API reference. It would only be a matter of calculating the distances for every point in your XML file, then taking the smallest X numbers.
Regarding your comment - yeah I guess looping through 300 items on the client-side might be a bit much. One solution would be to store the GPS coordinates for each point in your XML file (if not already), then create a function that would prune away most of the points using a simple distance calculator (you'd have to research that yourself). Then pass the remaining points (maybe 30 of them) into the API to calculate more accurate distances.