Importing Stations from *.csv / Excel
Example files are available under this document.
You can download them and modify according to your own data.
In order to import stations into logvrp by uploading CSV / Excel File:
- When "Stations Tab" is selected, Click "Import" Button.
- When you click the Import Button, "Import Stations From CSV / Excel" window will
appear.
- In Import Stations Window choose import type.
- If the coordinates of your stations are correct, choose "Use coordinates as
the station location". In this case, the addresses of the stations will no
be used for determining the location of the station.
- If the addresses of your stations are correct, choose "Use addresses as the
station location". In this case, the coordinates of the stations will not be
used for determining the location of the station. Since the addresses may not represent
a location exactly in geocoding the address into coordinates, we suggest you to
use coordinates. If an address of a station can not be geocoded into coordinates,
then that station will be listed with a prompt. You can either try again or import.
If you choose import when there are unkown addresses, then those stations will be
placed onto coordinates (0,0), i.e. south west of Africa.
- Then select the *.csv or Excel file which contains your stations. The stations file
content must be as described below.
- Click "Import" to start importing. A confirmation message box will appear. Since
importing stations will clear your station data and order data, please make sure
that the current data is saved.
- If the import is successfull, you will see your imported stations on "Stations"
Tab and on the Map.
The stations CSV or Excel file content must follow the following rules:
- The CSV file must contain the station information at each line separated with semi-colon
(;). No need in Excel
- At each line only 1 station information
- Each station information must be in the exact order: station_name, is_active, is_depot,
Longitude (X coord), Latitude (Y coord), "station_address"
- station_name: consists of alpha-numeric characters without comma (,)
- is_active: only true or false
- is_depot: only true or false
- Longitude (X coord): A floating point number with the restrictions defined below.
This field can be 0 (zero) if you DONT know the coordinates (latitude, longitude)
and you know the address and choose "Use addresses as the station location" when
importing
- Format: d.dddddddd or -d.dddddddd or pd.dddddddd or -pd.dddddddd or pdd.dddddddd
or -pdd.dddddddd, where d is [0-9] and p id [1-9].
- Use dot (.) as decimal point seperator
- Must be between -180 and 180
- Valid example 1: 0.02478
- Valid example 2: -2.78956
- Valid example 3: 29.98340
- Valid example 4: -123.45678
- Invalid example 1: 05.02478 (because there is a zero (0) before the non-decimal
part)
- Invalid example 2: +2.78956 (because there is a plus (+) sign
- Invalid example 3: 29,98340 (because comma (,) is used as decimal seperator)
- Invalid example 4: 321.98340 (because it is bigger than 180)
- Latitude (Y coord): A floating point number with the restrictions defined below.
This field can be 0 (zero) if you DONT know the coordinates (latitude, longitude)
and you know the address and choose "Use addresses as the station location" when
importing
- Format: d.dddddddd or -d.dddddddd or pd.dddddddd or -pd.dddddddd or pdd.dddddddd
or -pdd.dddddddd, where d is [0-9] and p id [1-9].
- Use dot (.) as decimal point seperator
- Must be between -90 and 90
- Valid example 1: 0.02478
- Valid example 2: -2.78956
- Valid example 3: 29.98340
- Valid example 4: -123.45678
- Invalid example 1: 05.02478 (because there is a zero (0) before the non-decimal
part)
- Invalid example 2: +2.78956 (because there is a plus (+) sign
- Invalid example 3: 29,98340 (because comma (,) is used as decimal seperator)
- Invalid example 4: 321.98340 (because it is bigger than 90)
- station_address: consists of alpha-numeric characters without comma (,). This field
can be optional if you know the coordinates (latitude, longitude) and choose "Use
coordinates as the station location" when importing
Sample CSV File Content
Depot; true; true; -73.9857; 40.6896; "2-30 Hoyt St Brooklyn NY 11201 USA"
St 1; true; false; -74.0122; 40.7190; "32-98 Harrison St New York NY 10013 USA"
St 2; true; false; -74.0048; 40.7261; "26 Vandam St New York NY 10013 USA"
St 3; true; false; -73.9511; 40.7235; "78-80 Nassau Ave Brooklyn NY 11222 USA"
IMPORTANT NOTICE:
When the stations are imported, the current station list and order list will be
cleared from the Station Tab, Order Tab and Map. Therefore, please make sure you
have saved stations and order data before importing any data if you do not want
to lose your data.