3
I need to find out the status that the user is accessing the page, to select already be marked, and some functions enabled.
I was seeing that finding the status from the IP is pretty flawed. Ai saw that had to use the HTML5 Geolocation, however it only returns the latitude and longitude. Would somehow it return the state ?
I was looking for some function that would return the state, after informing the latitude and longitude, but did not find.
Does anyone know what I can do to precisely get what status the user is accessing ?
What is the degree of accuracy ? Can it hit 100% states ? Or is it still preferable I put something to him to confirm the state that he really is ?
– Bruno
In browsers that support HTML5 I believe it is 100%. I’ve never had problems with this code, I’ve even used it on a car rental site all over the country and it always worked. The ideal is that when filling the city, the state or any field that returns there is to make flexible the edition.
– Jhonatan Simões