how to find out the distance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmrhema
    Contributor
    • Jan 2007
    • 375

    how to find out the distance

    Hi,

    My client will input two values say A and B.
    Here A and B represent cities. The source is A and the Destination is B
    Now i have to find the shortest route for these two cities
    One is using Dijktra's algorithm. But there one has two provide the other values too.

    eg He starts from A and reaches to B, via A1,A2,A3, B1,B2,B3
    we get all the distances from one place to all the above mentioned places and can find out the shortest path.

    But my prblem is how shall i find what are the places that lies between these two cities A and B and other distances.
    If I take the latitude/longitude of A and B, how shall I find the cities that lies between these two places and then calculate the distance.

    Any suggestions pls

    regards
    cmrhema
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Look for map code API for say GoogleMaps, or Yahoo Maps or Microsoft's maps or whatever.
    This really isn't a .NET question.

    Comment

    • cmrhema
      Contributor
      • Jan 2007
      • 375

      #3
      Originally posted by Plater
      Look for map code API for say GoogleMaps, or Yahoo Maps or Microsoft's maps or whatever.
      This really isn't a .NET question.
      Actually I deal with vehicle tracking system, a software developed using asp.net ,C# and sqlserver.

      So the moment any one gives me reply abt finding cities within the source and destination.
      I should convert it into asp.net code.

      You are very correct in putting out that it is indeed not an .NET question.

      But because my software deals with the language, I placed it up here.

      Thanks

      Comment

      Working...