aspose file tools*
The moose likes Servlets and the fly likes how to  pass the value from the servlet to the google maps webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to  pass the value from the servlet to the google maps webservices" Watch "how to  pass the value from the servlet to the google maps webservices" New topic
Author

how to pass the value from the servlet to the google maps webservices

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I am trying to do Zip code locator which will do the following.
Once the user/customer puts his zipcode in the search textbox and clicks search.
The application has to return the essential utilities like hospitals, banks, atms, post office etc near the place of the customer within 2miles as radius.
So I thought of using the Google maps or yahoo maps web service.
Can you just tel me how to approach this problem to get the search and response servlet where the user clicks search and the values are sent to google and the answer is returned back in xml form.

Thanks
Sandeep Kumar Jakkaraju
Ranch Hand

Joined: Feb 25, 2009
Posts: 75
Hello Preeti

Please send me the URL for the Webservice and some documentation ... i will send you the client ...

Thanks
Sandeep
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thank you for your reply.Please see the following project description

PROJECT ABSTRACT
ZIPCODE SERVICES LOCATOR



Project Description:

The central theme of this project is to provide the customers with an option of discovering
all the services when they provide with their zipcode. We are trying to provide a central platform
for people to locate essential services like hospitals, banks/atms and convenience stores like
supermarkets within certain radius of their zip code in United States. The project uses Google
webservice to locate the place and return the values corresponding to the zipcode typed in by the user.

We would like to establish a record containing all the users which serves as a repository.
Basically the user has to register his name and establish an account in order to kick start the process.
Once the user establishes the account he has the option of choosing the commodity or service he wants to
look up near his zipcode. It would provide capabilities like searching, retrieving detailed information
about the location and also providing direction to reach the particular destination. Once the customer
searches using the zipcode and clicks the submit button, the list of services gets displayed and the customer
can choose the service he wants to locate.
Database would be regularly updated to keep track of all the information and present it to the user
as and when the user requests from the web service client.
This web service is extremely user friendly and provides the best possible assistance to the customer
thereby saves money and time.



Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Start by familiarizing yourself with Google Maps. There's a nice introduction available for $8 from Pragmatic Programmers that has plenty of code examples. Once you know how to create a map and put POI markers on top of it, then you can start thinking about how to get the data from the server. I've had good success using an AJAX call that retrieves the data in JSON format.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass the value from the servlet to the google maps webservices
 
Similar Threads
Retrieving form information
dot.com deja vu again?
HOW TO RUN TOMCAT5.5
Annoying Hibernate serialization
How to implement cell triangulation in mobile phones to track location?