File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Given a zip code return latitude and longitude Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Given a zip code return latitude and longitude" Watch "Given a zip code return latitude and longitude" New topic
Author

Given a zip code return latitude and longitude

Shree Chinnu
Greenhorn

Joined: Jan 16, 2010
Posts: 7
Hi
I have to create 2 web services.
I have List of addresses in my DB

I have to calculate the latitude and longitude of a place given the partial address
Given a zipcode and a distance should return all the address within the radius.

please provide me the a sample code for the same.
please help me

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
Enter in Google: "zip code to latitude longitude" to find data sources.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
Searching for "Java GIS" will find many tools and sites that may be helpful for this. http://www.openstreetmap.org/ may also be of interest.

As an aside, a ZIP code is not a point, it's an area (assuming that you mean US-American ZIP codes), so calculating a distance around that will be tricky, to say the least.


Ping & DNS - my free Android networking tools app
Shree Chinnu
Greenhorn

Joined: Jan 16, 2010
Posts: 7
There is a web service through which I am fetching all the address details passing ZipCode through the DataBase.
Now I have to create enhance it to fetch the latitude and longitude details when I pass the partial address.
I cannot add a new datasource to the existing web service.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Given a zip code return latitude and longitude