Simple table construct?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Simple table construct?

MikeKJ
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Simple table construct?

Andy-3
You could use Djangos geo features to calculate distances.
https://docs.djangoproject.com/en/2.0/ref/contrib/gis/

Am Mittwoch, 31. Januar 2018 15:40:41 UTC+1 schrieb MikeKJ:
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 [hidden email].
To post to this group, send email to [hidden email].
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/42e87be2-aea3-4f32-b2e7-b9d95f796566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.