I want to lists posts in wordpress to nearest location entered by the user

I want to lists posts in wordpress to nearest location entered by the user