Flyai Travelmapify
by @rudy2steiner
Create interactive travel route maps from location names with real FlyAI hotel search. Supports AI Vision analysis of travel planning images.
clawhub install flyai-travelmapifyš About This Skill
name: flyai-travelmapify version: 2.2.2 description: Create interactive travel route maps from location names with real FlyAI hotel search. Supports AI Vision analysis of travel planning images. author: rudy2steiner license: MIT tags: [travel, maps, routing, geocoding, flyai, hotels, unique-id, server-management, interactive, ai-vision]
Travel Mapify
Create interactive, professional travel route maps from location names.
Overview
This skill automatically: 1. Processes text input: Parses comma-separated location names directly 2. Geocodes locations to get precise coordinates using Amap API 3. Generates interactive maps with route optimization and POI management 4. Supports AI Vision workflow: When given travel planning images, use agent's AI Vision to extract POI names, then process as text input 4. Geocodes locations to get precise coordinates using Amap API 5. Generates interactive maps with route optimization and POI management 6. Integrates real hotel search using FlyAI for actual hotel recommendations 7. Creates professional outputs ready for sharing and presentation
When to Use
Text Input Mode:
AI Vision Image Processing Workflow:
Hotel Integration Mode:
Workflow
Step 1: Input Processing and POI Extraction
For Direct Text Input:
For Image Input (AI Vision Workflow):
Step 2: Geocoding and Coordinate Resolution
Step 3: Enhanced Map Generation
Step 4: Automatic Server Management
Step 4: Professional Output Delivery
File Structure
flyai-travelmapify/
āāā SKILL.md
āāā INSTALL.md # Installation and setup guide
āāā flyai-travelmapify.py # PORTABLE ENTRY POINT: Main executable script
āāā scripts/
ā āāā config.py # DYNAMIC CONFIGURATION: Path and environment detection
ā āāā main_travel_mapify_enhanced.py # PRODUCTION MAIN: Auto-starts servers + text input + unique ID isolation
ā āāā geocode_locations.py # Amap geocoding integration
ā āāā generate_from_optimized_template.py # Optimized template with unique map ID isolation
ā āāā hotel-search-server.py # FlyAI hotel search backend serverNote: Image processing is handled externally using the agent's AI Vision capability. The extracted POI names are passed as text input to this skill.
āāā references/
ā āāā amap_api_guide.md # Amap API usage patterns
ā āāā poi_validation_rules.md # POI validation and filtering rules
ā āāā troubleshooting-guide.md # Common issues and solutions
āāā assets/
āāā templates/
āāā main-generic-template-with-unique-id.html # PRODUCTION TEMPLATE: Unique ID isolation + all features
Main Template: The skill now uses the optimized travel_mapify system with unique map ID isolation as the primary approach, which includes:
travelMap_abc123) to isolate localStorage dataAutomatic Server Management: The enhanced main script automatically starts both HTTP server (port 9000) and hotel search server (port 8770) when generating maps, ensuring all functionality is ready immediately.
Usage Examples
Portable Execution
# From skill directory (recommended)
python3 flyai-travelmapify.py --locations "äøęµ·å¤ę»©,迪士尼ä¹å,豫å" --output-html shanghai-trip.htmlFrom any directory
python3 /path/to/flyai-travelmapify/flyai-travelmapify.py --locations "åäŗ¬ę
宫,天å,é¢åå" --output-html beijing-trip.htmlAI Vision Image Processing Workflow:
1. Use agent's AI Vision to analyze travel image and extract POI names
2. Pass extracted names as text input to the skill
Example: locations="č§£ę¾ē¢,å±±åę„é,åå
«ę¢Æ,ē½č±”å±
,ę¹å¹æä¼é¦,ę„ē¦å£«,擪å“ę“,åå®éØå¤§ę”„"
With custom ports
python3 flyai-travelmapify.py --locations "Tokyo Tower,Shibuya Crossing" --output-html tokyo-trip.html --http-port 8080 --hotel-port 9000
Image Input - AI Vision Enhanced
User: "Here's my travel plan screenshot, can you make it interactive?" ā Skill analyzes image using AI Vision model ā If needed, requests clarification: "What city is this for?" or "How many attractions are marked?" ā Extracts attractions with preserved sequence and generates interactive mapImage Input - Manual Clarification
User provides image ā Skill detects uncertainty ā Requests city context ā User responds "éåŗ" ā Skill processes with enhanced accuracyImage Input - Direct POI Entry
When AI Vision cannot confidently identify attractions, skill prompts: "Please provide attraction names in order, separated by commas"Image Input - Advanced Usage
User: "I have a photo of our Beijing itinerary, please create a shareable map" ā Skill processes image, validates locations, creates optimized route with professional stylingText Input - Direct Locations with Auto City Detection
User: "åäŗ¬åäŗåē©é¦,åäŗ¬ē§ę大å¦" ā Skill auto-detects city="åäŗ¬" from location names ā Parses locations directly, geocodes them, and generates interactive mapText Input - Default City Fallback
User: "å¤ę»©,迪士尼ä¹å,豫å" ā Skill cannot detect city from generic names ā Uses default city="äøęµ·" for geocoding ā Generates interactive mapText Input - Simple List
User: "Create a travel map for: Tokyo Tower, Shibuya Crossing, Meiji Shrine" ā Skill extracts location names, geocodes them, creates optimized routeHotel Search Integration
User: Clicks "ęé åŗ" button in generated map ā Real FlyAI hotel search returns actual hotel data with prices and booking links ā No mock data - uses real-time Fliggy MCP integration ā Professional UX with loading states and notifications (no alert popups) ā Default dates: today for check-in, tomorrow for check-out (1-night stay)Customization Request
User: "Can you adjust the route order and add missing locations?" ā Skill provides editable interface with search functionality and reordering toolsTechnical Requirements
npm install -g @openclaw/flyai) Required Skills
This skill depends on the following OpenClaw skills:
Both skills must be installed in your OpenClaw workspace under the skills/ directory:
~/.openclaw/workspace/
āāā skills/
ā āāā flyai-travelmapify/
ā āāā amap-maps/
Portable Design
ā No hardcoded paths - Automatically detects OpenClaw workspace and FlyAI installation ā Cross-platform - Works on Windows, macOS, and Linux ā Self-contained - All scripts and templates included in skill directory ā Environment-aware - Adapts to different system configurations ā Fallback mechanisms - Multiple detection methods for required components
Output Files
The skill generates HTML files using the optimized travel_mapify system with unique map ID isolation as the main template:
[location]-travel-map-optimized.html - Dual-mode interface with all professional enhancements:
Files are self-contained and work in any modern web browser when served via HTTP server.
Error Handling
Enhanced UX Features
Professional User Interface:
Smart Defaults: