How to find the distance between two ZipCodes using Java Code?

前端 未结 5 1176
夕颜
夕颜 2020-12-10 05:15

My requirements are similar to this question, except the fact that I am prohibited to use the latitude and longitude values. I want to caluclate the \"walking\"

5条回答
  •  心在旅途
    2020-12-10 05:24

    I followed a two step process...

    1. First, I took the user's zipcode as input, than found the latitude and longitude values by using one of the freely available APIs,
    2. Once I got the latitude, longitude pair,I was able to easily use the function suggested by @Bohemian...

    However after sometimes I found that google and Yahoo APIs are the best possible way for this IMHO, so I integrated that in my project. If any one interested I can paste the code for that here.

提交回复
热议问题