For getting Geographical Position of a user we have so many API's can any one tell me what is the concept behind this? How these api's can detect the geographical co ordinates of a user.

Please Explain 

Thanks and Regards,

Sunny.