Wednesday, January 31, 2018

Simple table construct?

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6bf5bd78-e60e-41ed-9dda-6f35f49b7b0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment