Rankings came from the wikipedia page for Mercer quality of life survey:
https://en.wikipedia.org/wiki/Mercer_Quality_of_Living_Survey
GPS coordinates of the cities were figured out using this free online tool:
http://www.mapdevelopers.com/batch_geocode_tool.php
## rank City lat lng
## 1 1 Vienna 48.208174 16.373819
## 2 2 Zurich 47.376887 8.541694
## 3 3 Auckland -36.848460 174.763332
## 4 4 Munich 48.135125 11.581980
## 5 5 Vancouver 49.282729 -123.120738
## 6 6 Dusseldorf 51.227741 6.773456
## 7 7 Frankfurt 50.110922 8.682127
## 8 8 Geneva 46.204391 6.143158
## 9 9 Copenhagen 55.676097 12.568337
## 10 10 Sydney -33.868820 151.209296
## 11 11 Amsterdam 52.370216 4.895168
## 12 12 Wellington -41.286460 174.776236
## 13 13 Berlin 52.520007 13.404954
## 14 14 Bern 46.947974 7.447447
## 15 15 Toronto 43.653226 -79.383184
## 16 15 Melbourne -37.813628 144.963058
## 17 17 Ottawa 45.421530 -75.697193
## 18 18 Hamburg 53.551085 9.993682
## 19 19 Luxembourg 49.815273 6.129583
## 20 19 Stockholm 59.329323 18.068581
## 21 21 Brussels 50.850346 4.351721
## 22 21 Perth -31.950527 115.860457
## 23 23 Montreal 45.501689 -73.567256
## 24 24 Stuttgart 48.775846 9.182932
## 25 25 Nuremberg 49.452102 11.076665
## 26 26 Singapore 1.352083 103.819836
## 27 27 Adelaide -34.928499 138.600746
## 28 28 Canberra -35.280937 149.130009
## 29 28 San Francisco 37.774930 -122.419416
## 30 30 Oslo 59.913869 10.752245
## 31 30 Helsinki 60.169856 24.938379
## 32 32 Calgary 51.048615 -114.070846
## 33 33 Dublin 53.349805 -6.260310
## 34 34 Boston 42.360083 -71.058880
## 35 35 Honolulu 21.306944 -157.858333
## 36 36 Brisbane -27.469771 153.025124
## 37 37 Paris 48.856614 2.352222
## 38 38 Lyon 45.764043 4.835659
## 39 39 London 51.507351 -0.127758
## 40 39 Barcelona 41.385064 2.173403