I will be moving to a new city. In this city I will be working at different plants. I only work at one plant a day, but will be going to different plants on different days. I want to live at the location that will allow me to travel the least on a weekly basis using public transit. In other words, I want to live in not necessarily the geographical centre of these locations, but at the location that would take me the least time to travel to each of these destinations.

I have pinpointed in Google Maps the locations of the plants (a hypothetical example is below). I would like to extrapolate where I should live. Given all of the possible transit routes and options in this large city, and the four different plant locations, I am facing hundreds of possible living locations. Is there a way to calculate which of these locations would, on average, lead to the least amount of travel to the plants on a regular basis?

Below is an example picture. Although the geographical centre might make sense, it is quite likely that it would be very suboptimal if it is far from public transit centres and such. A site quite far from the centre may be much more efficient if it's, for example, near the central hub of a metro system. Almost a third of this map near the middle could be up for grabs if it is convenient. Luckily, Google maps calculates travel times using public transit, but I do not know of a way to do what I want to do.


enter image description here

1 Answer 1


I don't know a way to automate this. As this is a one off I would do this.

  1. Mark the locations using Google maps
  2. Use bounds to find centre see this Answer
  3. Use Googles Direction Service to get results.
  4. Alter centre to optimise results.

Repeat Steps 3 & 4 to find optimal result.

  • Would this give me only the geographical centres? As I've mentioned, I am not interested in geographical centres, but rather commuting centres.
    – Behacad
    Commented Mar 27, 2014 at 1:55
  • You will have to repeat Steps 3&4 to find optimal distance/time Commented Mar 27, 2014 at 10:34
  • This solution seems similar to me just picking relatively central locations on the map by hand and calculating all the distances and doing that again and again. How would this solution save me time?
    – Behacad
    Commented Mar 27, 2014 at 10:59
  • 1
    You could write a program to do this but this would use more of your valuable time than doing it manually. Commented Mar 28, 2014 at 21:00
  • I'm sorry, I just don't see how this finds a centre related to commuting convenience. This seems to only find a geographical centre?
    – Behacad
    Commented Mar 29, 2014 at 2:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.