Locations within 100 miles/km of main location?

Hi guys,

I was wondering if anyone knows of an API that, given a list of locations, and a main location, can work out which locations from the list are closest to the main location (say by 100 miles/km)? Much like Google Map’s “near” search parameter.

Any help is greatly appreciated!