Simple table construct?

18 views
Skip to first unread message

MikeKJ

unread,
Jan 31, 2018, 9:40:41 AM1/31/18
to Django users
This should be real simple but it has me scratching where to start

Distance/Time between 2 place like

Distance
                A               B             C
A             0                5              10

B             5                0              5 

C             10              5               0

Time

              A               B               C
A            0               1                2

B            1               0                1

C            2               1                 0

I want to input a start and end get the distance and time between the 2 selected points.

I could junk the Time section and just divide by an average speed to get time if that simplifies

Trying to think on what the model(s) would be like to get the data in the first place

Be grateful for any input

Andy

unread,
Feb 1, 2018, 9:19:58 AM2/1/18
to Django users
You could use Djangos geo features to calculate distances.
Reply all
Reply to author
Forward
0 new messages