Mapping Service
Created: 2011-10-06 04:44:03
Last updated: 2011-10-06 05:01:20
This service generates a google map of a group of place names and coordinates. The workflow will accept both coordinates and place names.
This workflow takes place names/coordinates from both a spreadsheet, as well as on-the-fly input of a list of coordinates or place names (please note, if no supplemental data is desired, an empty link will allow the workflow to function).
The Mapping Service workflow was created to assist in generating a map of where a series of interviews took place, but can easily be adapted for other purposes.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (4)
Name |
Description |
fileURL |
Import a Spreadsheet. The workflow will support both coordinates and place names.
|
color |
Sets the color of the pins on the map.
|
mapSize |
Allows the user to specify the size of the map.
Measured length x width.
|
placeOrCoordinates |
If desired, add extra coordinates to the workflow not included in the spreadsheet.
|
Processors (8)
Name |
Type |
Description |
Merge_Spreasheet_Data_to_a_String |
localworker |
Merges the concatenated Country and PlaceNames into one list, separated by pipes (|). ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
SpreadsheetImport |
spreadsheet |
|
seperator_pipe2 |
stringconstant |
A '|' character to separate values. Value| |
REST_Service_from_maps.googleapis.com |
rest |
A REST service that fetches information from maps.googleapis.com. Also allows for customization of the pin color and the size of the map. |
Concatenate_Country_and_PlaceName |
localworker |
Scriptoutput = string1 + ' ' + string2; |
Merge_Supplemental_Values_to_a_String |
localworker |
Merges a list of place names or coordinats into one string. ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
seperator_pipe |
stringconstant |
A '|' character to separate values. Value| |
Concatenate_DataImports_to_One_String |
localworker |
Concatenates the data from the spreadsheet with the supplemental data. Scriptoutput = string1 + '|' + string2; |
Outputs (2)
Name |
Description |
Output |
|
redirect |
Final web address
|
Datalinks (14)
Source |
Sink |
seperator_pipe2:value |
Merge_Spreasheet_Data_to_a_String:seperator |
Concatenate_Country_and_PlaceName:output |
Merge_Spreasheet_Data_to_a_String:stringlist |
fileURL |
SpreadsheetImport:fileurl |
color |
REST_Service_from_maps.googleapis.com:color |
mapSize |
REST_Service_from_maps.googleapis.com:size |
Concatenate_DataImports_to_One_String:output |
REST_Service_from_maps.googleapis.com:coordinates |
SpreadsheetImport:Country |
Concatenate_Country_and_PlaceName:string2 |
SpreadsheetImport:Place Name |
Concatenate_Country_and_PlaceName:string1 |
seperator_pipe:value |
Merge_Supplemental_Values_to_a_String:seperator |
placeOrCoordinates |
Merge_Supplemental_Values_to_a_String:stringlist |
Merge_Supplemental_Values_to_a_String:concatenated |
Concatenate_DataImports_to_One_String:string2 |
Merge_Spreasheet_Data_to_a_String:concatenated |
Concatenate_DataImports_to_One_String:string1 |
REST_Service_from_maps.googleapis.com:responseBody |
Output |
REST_Service_from_maps.googleapis.com:redirection |
redirect |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 2)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (1)
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment