Starting to try and understand this code, I not that if no PLAC is found you send a search to http://ws.geonames.org
Can I suggest you change that to use the Googlemaps api instead because:
a - it will be compatible with the GM module, which made the same switch some time ago, and
b - because it was found the GM api gave a wider / better range of results outside the USA than geonames. Many users compained that geonames could never find their places, where GM could. Those complaints have stopped since the switch was made.
Log in to post a comment.