Is it possible to get the location from the device that the user is typing?

Is it possible to get the location from the device that the user is typing?

Yes.
Please refer: