calculate distance

后端 未结 3 1319
春和景丽
春和景丽 2021-01-07 15:36

i am designing a recruitment database, and i need it to perform several tasks that all involve integrating a way of calculating distance:

1) calculate the distance t

3条回答
  •  抹茶落季
    2021-01-07 16:23

    First, isn't the radius actually the 'as crow flies' distance from the client to the candidates? Anyway...you will need to figure out an algorithm for computing what you need based on the distance between the points.

    If you want the system to be stand-alone you will need to have the values for the coordinates (latitude, longitude) of the points. For this, you will probably need and internet connection and the use of a service like google maps to find the coordinates based on the addresses of the points. But once you store then in your db, you will not need an internet connection.

    There is a formula for computing the distance between two points based on the coordinates, you will easily find it :)

提交回复
热议问题