If you need to calculate distance between coordinates, then there are two plugins for it. And you can calculate this dance without any API.