source: subversion/applications/utils/import/csv2osm/config.sample @ 4349

Last change on this file since 4349 was 2275, checked in by nickburch, 13 years ago

Start on importers section of utils, with a csv -> osm converter

File size: 653 bytes
Line 
1$username = 'my@email.address';
2$password = 'PASSWORD';
3
4$input_csv = '/home/nick/osm/places.csv';
5
6$search_distance = 150; # In meters
7@search_attrs = (       # Any of
8        'place=town',
9        'place=village'
10);
11
12# Use $COL1 for the 1st column, $COL3 for third etc
13# Use special entries latitude and longitude for node lat+long
14@output_mapping = (
15        'place=village',
16        'name=$COL5',
17        'type=$COL3',
18        'latitude=$COL7',
19        'longitude=$COL8',
20        'is_in=$COL2,$COL1',
21        'source=CSV_to_OSM'
22);
23
24# Special Subroute to call to tweak CSV data, before mappings applied
25sub csv_tweaker {
26        my $csv_ref = shift;
27
28        # Nothing to do
29}
30
31# Script must return 1, as it'll be included
321;
Note: See TracBrowser for help on using the repository browser.