i am working on project of online courier service and i have to calculate distance between 2 cities .how i can calculate distance between 2 cities using jsp code?
howto calculate a distance between 2 cities ?
Collapse
X
-
Tags: None
-
JSP has nothing common with JavaScript ... even though you might use JavaScript for such a task by making a google routeplanning request with an AJAX call to retrieve the distance. I think you could even do that serverside with JSP ... but in both cases ... you would need to call a geo-service to get that distance.
regards -
hmmm ... of course ... you could even try with the linear line ... . but it wouldn't consider any special conditions like a river between the places or similar where you would have to go miles more to reach a brigde to cross it ... i guess for a courier service that might be important ... especially when that is going to be the base for tour-planner ... a map-service would consider most of such conditions ...
kind regardsComment
-
thnks.but how to get that geo service to calculateJSP has nothing common with JavaScript ... even though you might use JavaScript for such a task by making a google routeplanning request with an AJAX call to retrieve the distance. I think you could even do that serverside with JSP ... but in both cases ... you would need to call a geo-service to get that distance.
regardsComment
-
Comment