Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit...

17
Making Google Maps

Transcript of Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit...

Page 1: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Making Google Maps

Page 2: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Start with a list of papers by city+countryThis list was generated by:1. Edit out-file/Standardize addresses/Clean and add address fields (oux-file)2. Edit out-file/Standardize addresses/City and country truncate (tru-file)Also, a new file with duplicates removed was made before calculating this frequency list.Please, note that you will get a better end result if you edit and standardize the tru-file first.I am lazy so I didn’t!

Now copy from the list down to frequency 4=103 addresses

Page 3: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Go to http://www.gpsvisualizer.com/geocoder/ and paste only (if you wish) the city names into the input box and then Start geocoding using Yahoo and in a few minutes you will have coordinates for the cities in the results box. Now copy all rows from that box and return to BibExcel.

Page 4: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Clear the list and then Paste and now the coordinates are there!

Next, have the cit-file here and then run Mapping/Geographical mapping/Make a waypoint list

Page 5: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

A way-file with a waypoints is created. Copy all rows from the list!

A wax-file is also produced that you can sort alphabetically by 1st column and use later on for classifying cities into cities with coordinates.

Page 6: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Go to http://www.gpsvisualizer.com/map_input?form=data and paste into the box to the left. Also choose custom field and type n in the little box. Then Draw the map.

Page 7: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Here is the temporary Google map which you can zoom.

Page 8: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

If you wish to include collaborations. Start by making a coc-file using the oux-file and the 103 first listed addresses from the cit-file (see previous exercise). Then run Edit outfiles/Decompress outfile and answer Yes to accept that units are separaetd with tabs

Page 9: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

The nnu-file has unit from each pair split into two rows with frequencies to the left. 1. Select the wax-file that must be sorted alphabetically by 1st column and put it here. 2. Select the nnu-file and run Add data classify/Binary search

Page 10: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

The cll-file has now coordinates to the right!

Next, run Mapping/Geographical mapping/Make a trackpoint list

Page 11: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

A trc-file is made formatted for GPS Visualizer. Copy all rows from the list.

Page 12: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

…go back to the GPS Visualizer and paste the trackpoints after the waypoints in the same list. Press Draw the map

Page 13: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Now, collaboration links are added

Page 14: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

Zooming in on Europe

Page 15: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

As an extra bonus, while making the trackpoint list, BibExcel automatically calculates geographical distances in kilometers using Haversine’s formula! Look at the hav-file

Distance in kilometer

Go to http://www.movable-type.co.uk/scripts/latlong.html and check Haversine distances

Page 16: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

An alternative way of calculating distances is to start with at text file looking like this, with tabs between columns:

55 36,099625 -80,241094 51,430898 -0,547489

Then run Mapping/Geographical mapping/Calculate distances (Haversine)

and a had-file is made looking like this, with distance in kilometers to the far right:

55 36,099625 -80,241094 51,430898 -0,547489 6291

Page 17: Making Google Maps. Start with a list of papers by city+country This list was generated by: 1. Edit out-file/Standardize addresses/Clean and add address.

For some applications you may wish to find the min and max distance of pairs within a given doc number (e.g. largest distance among collaborating cities in a given paper). Suppose you have file like this with docnr+distances (1st and 6th column of the had-file):

68 065 10065 065 10965 2055 055 6291

If you then run Mapping/Geographical mapping/Min and Max distance a hax-file will be made looking like this:68 0 065 0 10955 0 6291

The 2nd column has min distance and the 3rd max distance