• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Given a zip code return latitude and longitude

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Enter in Google: "zip code to latitude longitude" to find data sources.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic