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 django-users+unsubscr...@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/42e87be2-aea3-4f32-b2e7-b9d95f796566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to