aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 12678
    
    5
Enter in Google: "zip code to latitude longitude" to find data sources.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
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 - updated with new look and Ping home screen widget
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
 
Similar Threads
sqllite database
How to get latitude and longitude value for s40 devices?
Multiple value return type in functions
Having issues reRendering a map when a rich:tree node is clicked on(SOLVED)
how to get a longitude & latitude from a given address