Update docs/travel/my_maps.md

This commit is contained in:
2024-04-14 20:08:02 +00:00
parent a6a711c52f
commit c75685624d

View File

@@ -1,3 +1,54 @@
When building out your data points or POIs for your travel planning, it's essential to choose a format that is both human-readable and easy to process programmatically. In this case, I recommend using a simple CSV (Comma-Separated Values) format to store your POI data. CSV files are lightweight, easily editable in Vim or any text editor, and can be effortlessly imported into various tools like Google My Maps, QGIS, or custom scripts for further processing.
Here's a suggested structure for your CSV file:
```
name,description,category,latitude,longitude,layer
Eiffel Tower,Iconic landmark in Paris,Attraction,48.8584,2.2945,Landmarks
Le Louvre,Famous art museum,Museum,48.8606,2.3376,Museums
```
Each line in the CSV file represents a single POI, with the following fields:
- `name`: The name of the POI.
- `description`: A brief description of the POI.
- `category`: The category or type of the POI (e.g., Attraction, Restaurant, Hotel).
- `latitude`: The latitude coordinate of the POI.
- `longitude`: The longitude coordinate of the POI.
- `layer`: The layer in which the POI should be placed in Google My Maps.
By organizing your POI data in this structured format, you can easily manage and update your information using Vim or any text editor. You can also quickly filter, sort, and process your data using simple Linux commands or custom scripts.
Here's a step-by-step workflow to create and manage your POI data:
1. Create a new file named `travel_pois.csv` using Vim:
```
vim travel_pois.csv
```
2. Add your POI data to the file, following the CSV structure mentioned above. Use Vim commands to edit and navigate the file efficiently.
3. Save the file and exit Vim.
4. Import the `travel_pois.csv` file into Google My Maps:
- Open Google My Maps and create a new map or open an existing one.
- Click on the "Import" button under the "Untitled Layer" in the layers panel.
- Choose the `travel_pois.csv` file and select "Upload."
- Match the columns from your CSV file to the appropriate fields in Google My Maps (e.g., "name" column to "Title," "description" to "Description," etc.).
- Ensure that the "Latitude" and "Longitude" columns are correctly mapped.
- Click "Finish" to import the POIs into your map.
5. Use Google My Maps to visualize, style, and organize your POIs into different layers based on the "layer" field in your CSV file.
6. Whenever you need to update or add new POIs, simply edit the `travel_pois.csv` file using Vim, and then re-import the updated file into Google My Maps.
By following this approach, you can leverage the simplicity of CSV files and the power of Vim to manage your POI data effectively. You can easily collaborate with others by sharing the CSV file, and you have the flexibility to process your data using various tools and scripts as needed.
As you continue to work with your POI data, you may discover patterns or requirements that call for a more advanced data structure or format. However, starting with a simple CSV file allows you to quickly prototype and iterate on your travel planning workflow while keeping your data organized and accessible.
---
Understood. Let's focus on a workflow that revolves around managing points of interest (POIs) using Linux, Vim, and other technologies you're comfortable with, while leveraging your data analysis skills to enhance your travel experiences. Here's a tailored guide that incorporates your preferences:
## Step 1: Data Collection