Use Following Code for get current location by ip address. We can get current location of user by following code.