Hi gatorvip,
thank you for your response, yes, I did, but still did not get how to exactly do it.
thanks.
xuqn
Main Topics
Browse All TopicsI am working on Java application, J2ee, (struts, Hibernate), when user enter the location at "add my location",
right now, the user can enter any city the application currently will take whatever the entry and save it into our database, now i need to validate the entry, if the user enters invalid city, the application should give message
saying it is invalid city, and not allow the user to add.
How do I access to google maps API to do the vilidation? (I am at struts action class, in java, i can capture what the user entered)
thanks.
xuqn
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Bazarny,
Thank you for your response. Maybe in GClientGeocoder getLocations() , or (Geocode) it returns some code status saying the city is unknown? all I want to know given city (/with state) is existing or unknown, in our application if it valid city, we allow the user save the entered city into our database, otherwise give the user a message say the city entered is not found, something like that.
thanks.
xuqn
Business Accounts
Answer for Membership
by: gatorvipPosted on 2007-09-06 at 12:04:35ID: 19842825
>>How do I access to google maps API to do the vilidation?
/maps/ ?
Did you look at http://www.google.com/apis