Mathematica has many useful features when it comes to Geo Computation. I wanted to check out some of these features for today’s post.

I travel between Chennai and Bengaluru on official work. So, let us start by determining the on-road distance between these cities.

Distance

It turns out that this is the distance when you travel by car. Well, is there a shorter route if we decide to walk from Chennai to Bengaluru (not that I plan to take that challenge)? Mathematica says yes:

Walking Distance

That is not a big difference, but it still helps, if we ever decide to walk. Let us be more specific. We shall ask Mathematica to show the route to follow if we decide to walk this distance.

Walking Route

How does it differ from driving? Here is the driving route:

Driving Route

As you can see, the route is slightly different. What if I want to go by bicycle? Let us check that too:

Cycling Route

So cycling uses the same route as walking, which is understandable. Next question is, assuming normal speeds, how long will each of these modes take?

Travel Time

Great! The documentation tells us that traffic is not considered for these calculations. That makes sense, as otherwise the travel time cannot be determined with any degree of accuracy at all.

Sadly, although I would like to find out the same set of information for train travel, Mathematica does not help us there. Only these three modes are supported for now.

What else? There is a lot more, if you are interested! Before concluding this article, I wanted to check the weather forecast for Chennai for one week. See the following figure.

Weather Forecast

Quite useful, right?

So, Mathematica does not just provide the routine formulae and calculations; it is distinguished in its ability to give us access to a huge curated knowdgebase. I will explore more features in future posts.

Thanks for your time!

Tags: ,

## Subscribe

If you enjoyed this article, subscribe now to receive more just like it.

Top