• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Given a zip code return latitude and longitude

 
Shree Chinnu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enter in Google: "zip code to latitude longitude" to find data sources.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shree Chinnu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic