- How much does it cost?
- How should data be formatted?
- How does StatCrunch work with this tool?
- Is there a limit on the number of locations that can be plotted?
- How do I include a map generated with this tool on my web page?
- How much does it cost?
There are three inputs to Google plotter: location information, legend title and optional legend information.
The location information should consist of one location per line. Each line can have up to three pieces of "|" delimited information. The first piece contains either a structured address or geographical coordinates (latitude longitude) for the location. The second piece specifies the marker color in hex format, and the third piece contains additional information about the location that will be displayed when a user clicks on the location marker. The color and additional information inputs are not required. If a color is not specified, a default red marker will be used to plot the location. Try pasting the example information below into the location input above, and then click Plot locations.
New York, New York||Big city Arkansas|#0000FF|The land of opportunity 30.582241 -96.289328|#800001|Gig'em Aggies!!!!The legend title has by default the value "Legend" which will be used if no other value is specified. If the optional legend information is omitted, the legend will contain a linked list of locations. When a user clicks a link, the information about that location will be displayed. Each line entered for the optional legend information will translate into a row in the plot legend. Each line may consist of up to three pieces of "|" delimited information. The first piece will define the color in hex format for the row. The second piece contains the text label for the row, and the third piece contains a space delimited list of indexes associated with the row. The index information is optional with the first location corresponding to an index of 0 rather than 1. If indexes are specified, the legend row will contain a check box which will allow the user to toggle the display of the associated markers. Try pasting the example location information above and the example legend information below into the appropriate fields above, and then click Plot locations.
#FF0000|Been there|0 #0000FF|Born there|1 #800001|Live here|2Note that it is up to the user to make sure that the legend colors match the location colors!
StatCrunch will allow you to load your location information from either a text or Excel file. Using the Graphics > Map > Google option, you can easily select columns in your data set which will be used to create information which will be loaded automatically into this tool. You can also save your map to your StatCrunch My Results folder and share it with others. For more information on a StatCrunch subscription see statcrunch.com.
Theoretically no. However, you will notice that the creation of the map will get a bit slow if you have more than a few hundred locations. Also, if you specify locations with structured addresses rather than coordinates, Google translates (geocodes) the address into coordinates. Google limits each IP address to 15,000 geocode requests per day. A map is saved with coordinates so that future geocoding is not required.
After a map is created, a text box with the html code for a web page containing the map will be displayed. Simply copy/paste the code into an html file on your web server. You will need a Google Maps API key for the map to work on your server. The api key should replace the existing key shown in the html code. You can embed the result in other Web pages using an IFRAME as shown below.
<IFRAME src="you_html_file_location" width=680 height=325 frameborder=0 marginwidth=0 marginheight=0 scrolling=no></IFRAME>Note that if you have a StatCrunch account, you can save a map to your My Results folder. If you share the map, you can simply click the Embed link on the result page to obtain the IFRAME code.