I have two input box:
<input name="adrs" id="adrs" type="text">
<input name="city" id="city" type="text">
Now I want when user write this, is there any way by which i can tell the user that given address is not on google map? Any simple method , I am using EasyGoogleMap.class.php class. Please suggest me any jquery method to show the message
You would have to geocode the address and analyze the returned data. I don’t know what class you’re using – maybe it already contains a geocoding function. If not, this article gives a complete rundown on how to program this in PHP.
The returned address will contain a
accuracyfield.The accuracy codes that will interest you most are
If you get a code 8 and above, you can safely assume the address is on Google Maps. If it’s below, it’s not, or not exactly.
You can look up all accuracy codes here.