Trip Management
MayTravel provides a hierarchical trip management system that organizes your travels from high-level planning down to individual activity details. Each trip contains a structured itinerary with stops, timing, and location information.Trip Structure Overview
Trips follow a clear organizational hierarchy:Trip Container
The top level holds your trip title, destination, accommodation location, and travel dates.
Stop Sequence
Each trip contains an ordered list of stops representing places to visit during your journey.
Creating a New Trip
Start planning by creating a trip linked to your user account:The
lat and lng coordinates represent your accommodation or base location (shelter) during the trip. The AI uses this to optimize travel times.Trip Properties
Each trip contains the following information:A descriptive name for your trip (e.g., “Summer in Barcelona”, “Weekend Getaway to Rome”).
Geographic coordinates of your accommodation stored as a PostGIS Point geometry. This serves as your home base.
The date you arrive at your destination.
The date you depart from your destination.
Links the trip to your user account.
Viewing Your Trips
View All Trips by User
Get a complete list of all your trips:View Detailed Trip Information
Retrieve a complete itinerary with all stops:Understanding Stops
Stops are the individual activities and places in your itinerary:Stop Order
Sequential numbers (1, 2, 3…) indicate the recommended order to visit locations.
Timing
Each stop includes arrival and departure times for precise planning.
POI Details
Linked to the POI catalog for rich information about each location.
Category Tags
Categorized by type (Historical Sites, Restaurants, Parks, etc.) for easy filtering.
Adding Stops to Your Trip
Build out your itinerary by adding stops:Deleting a Trip
Remove a trip you no longer need:Browsing All Trips
Admins or authorized users can view all trips in the system:Geographic Data
MayTravel uses PostGIS for advanced geographic features:Point Geometry
Point Geometry
Shelter locations are stored as PostGIS Point geometries in SRID 4326 (WGS 84), the standard for GPS coordinates.
Coordinate Format
Coordinate Format
Points are represented as [longitude, latitude]. Note that longitude comes first in GeoJSON format.
Spatial Queries
Spatial Queries
The system can perform distance calculations, proximity searches, and route optimization using spatial functions.
Map Integration
Map Integration
Coordinates integrate seamlessly with mapping services like Google Maps Platform for visualization.
Trip Planning Workflow
Follow this typical workflow for trip planning:AI Generation
The AI analyzes your profile interests and generates a personalized itinerary with stops.
Best Practices
Accurate Shelter Location
Use the exact coordinates of your hotel or accommodation for optimal travel time calculations.
Realistic Time Frames
Don’t over-pack your itinerary. Allow buffer time between stops for travel and spontaneity.
Logical Stop Order
Keep stops in a geographic sequence to minimize backtracking across the city.
Category Balance
Mix different stop categories (culture, food, nature) for a well-rounded experience.
Learn More
AI Trip Planning
Understand how AI generates your itineraries
Points of Interest
Explore the POI catalog and available locations
Trip API Reference
View complete API documentation for trips
Stops API
Learn how to work with stops programmatically