I need to implement geolocation in a PHP-based app that I'm developing, and I'd like to know what the best way to go about it is.
Based on what I've researched so far, .. doing a lookup based on IP address (using an API) is not always 100% accurate, .. and some lookup service providers are more reliable than others. Also, .. you're generally only able to identify the Country of the visitor, .. and not the precise location (ie: US State / City). So .. I'm wondering if there might be a better way?
Does anyone here have any suggestions as to what the best way to implement something like this would be? I'm looking for the most accurate and precise geolocation method possible (preferably something that identifies more than just the Country), .. and if it means that we have to subscribe to and pay for some service, .. that's ok.
What about HTML 5's location services? Is there any way that I can leverage that?
Any tips or advice (or code samples) would be greatly appreciated.