blankblank blank




Drawing Lines Between Points In Google Maps, Straight And Great Circle



In comments from a previous post, TommyBoy writes:

“What I’m looking for and just can’t seem to find; is a simple line plotting tool for Googlemaps. On the weather sites, they’ll say “a storm is expected south of so-and-so to so-and-so to so-and-so. I’d like to pop those cities into a GMap, and have is simply display a straight line connection one city to another, so you can see the storm line. Not following roads and directions, just a point to point to point line. I’ve search high and low, and can’t find anything that simplistic. Ever come across something like this?”

Why yes, I have. Of course, if I hadn’t, I wouldn’t be writing this post :).

The RoutePlanner website allows you to plot routes between locations on a Google Maps interface that you define either by clicking on the map, or entering the location into a search box. For drawing a straight line between two cities, you would do the following:a. Skip the first step the interface, which zooms in on a location of interest - in most cases the zoom will be at too high a level to be useful.

b. Enter the points you want to draw a straight line between, either by clicking on the Google Maps interface, or entering a location (at least city and state) into the search box. When you enter the first point, it will zoom into that location. Entering the second point will not zoom to that location, though, and you will probably want to zoom out to see both markers on the map.

c. You have two sets of options in the third step on the page. The first is supposed to give you the driving route between the two points, but I can’t seem to get it to work (possibly because of pop-up blocking issues). The other draws a “as the crow flies” straight line between the two points, which is what I think you want. There are two options, “Get Crow Route As Entered” and “Get Best Crow Route”, but they usually seem to give the same results for two points. There are times, though, when one of the “Crow” options doesn’t work, while the other does, and that appears to be a problem with clearing out locations from a previous operation.

d. Once you’re done, you can zoom out to see the line between the two locations, clear everything and Start Over, or even save the points and drawn line in a permanent URL you can bookmark, like this one.

One thing to keep in mind, though, is that only North/South and East/West lines will be “true” in terms of direction. I believe Google Maps uses the “Plate Carree” (”flat and square”) or equirectangular projection, where the grid uses an equal spacing for latitude and longitude degrees in the y and x directions. But on the earth, the distance spanned north/south by a degree of latitude is constant, while the distances spanned east/west by a degree of longitude is greatest at the equator and shrinks to zero at the poles. So line drawn on the map that isn’t exactly east/west or north/south doesn’t represent the bearing angle from one point to another correctly, but will be skewed southward somewhat. For the purposes you want to use this for, though, it’s not that big of a deal.

Another thing to remember is that on a flat representation of a curved surface, like a map of the earth, a straight line is usually not the shortest distance between two points. For that, you’d want a “Great Circle” route plotter, and there’s a pretty good one with a Google Maps interface at the Great Circle Mileage Calculator and Display website. Unlike the RoutePlanner website, you have to manually choose the two points you want to draw a Great Circle between, but creating the points is easy:

1. Enter the locations that you want to create a Great Circle between in the box at the top.

2. Click on Start Course

3. Click on the first point marker, then the second, then click “End At Last Point”; the Great Circle Route will be drawn between the two. You can also add markers to the map manually at this stage as well.

The other options are fairly easy to figure out.

Other posts in the Google Maps Tools series

  1. Coordinate Data From Google Maps
  2. Reverse Address Geocoding With Google Maps
  3. Converting Google Maps Search Results To GPX
  4. Coordinate, Elevation, Distance And More In Google Maps
  5. Google Maps "My Maps" Features
  6. Measuring Elevation, Distance And Area In Google Maps
  7. Creating GPS Routes In Google Maps
  8. Thematic Polygon Shapefile Display In Google Maps
  9. Using The Google Maps Interface To Display General Maps And Images
  10. Heat Mapping In Google Maps
  11. Elevation Profile In Google Maps
  12. Embed Google Maps "My Maps" On Your Web Page
  13. Real-Time Website Visitor Plotting In Google Maps
  14. Customizing Google Maps Markers
  15. Two Fun Cartographic Google Maps Tools
  16. Simple Guide To Embedding Google Maps "My Maps" On Your Own Webpage
  17. Another Google Maps Geocoder/Reverse Geocoder
  18. Drawing Lines Between Points In Google Maps, Straight And Great Circle
  19. Convert A Google Maps Point To Multiple Text Geographic Formats
  20. Meet Your Friends Halfway
  21. Plotting Swivel Data In Google Maps
  22. Meet Your Friends Halfway II
  23. Geographic Midpoint Calculator
  24. GIS-Like Functionality In Google Maps With ZeeMaps
  25. Creating GPS Waypoints Online From The USGS Geographic Names Information System (GNIS)
  26. MapMyRide.com
  27. Exporting KML Data From Google Maps MyMaps To A GPS
  28. Advanced Tool For Embedding Google Maps MyMaps On Your Website
  29. Draw/Label On Google Maps, And Generate GPX/KML/Embeddable Maps
  30. Another Way To Create Embeddable Google Maps With KML Data
  31. Documenting A Journey With Maptales
  32. Plot A Coordinate Position On Different Map Pages
  33. Worldwide Reverse Geocoding With Google Maps
  34. Google Maps Shaded Relief Site Updates
  35. Digipoint 2: Export Of Google Maps Points In Multiple Formats, And Elevation Data
  36. Google Maps Line Tool Now Supports Distance Measurement
  37. Geographically-Linked Video With VeoGeo
  38. Recent Google Maps Tools
  39. Google Maps Mapplets From Zonums Software
  40. Maximize Google Maps With Google Maps Max
  41. Mapping Zip And Area Code Boundaries, And More
  42. Altitudes And Terrain Profiles In Google Maps
  43. “Friendly” URLs To Address Maps
  44. Quick Zip Code Information
  45. Simple Online Form For Creating An Embeddable Google Map
  46. Embed Synchronized Google/Microsoft Virtual Earth Maps On Your Website/Blog
  47. Worldwide Contour Lines In Google Maps’ Terrain View
  48. Plot Gazetteer Features In A Google Maps Interface
  49. Antipodes Map
  50. New Features At MapChannels.Com
  51. Small, Simple Tool For Getting Distances And Bearings Between Points In Google Maps


Subscribe to this blog's RSS feed

1 Response to “Drawing Lines Between Points In Google Maps, Straight And Great Circle”


  1. 1 elena

    Good info here, but I would add a disclaimer that the Route Planner can only be used for North America (as far as I see).

Leave a Reply


Be sure to enter the "reCAPTCHA" below before submitting your comment.