Reputation: 11
I need to know how I can import a Map that will allow me to receive a users location, this should be simple since there are lot of sites that ask a user "allow site to track" location but I new to java.
I need the output to say something like User: 122312(Ip address) location: 232 wood street (physical address on the imported map or google maps)
Upvotes: 0
Views: 145
Reputation: 1923
IP usually included in the request header but with that, you can only find out the country of the user (that might be wrong if the user is using the proxy).
If you want to capture the user location then you have to use client-side language such as javascript etc because you need to take user permission before capturing it if you are doing with the help of the browser. then the client side language will push you the latitude and longitude which will fulfill your purpose.
Best Resource to explain you the everything in detail.
Upvotes: 1