LifeAstroAPILifeAstroAPI
intermediate
~20 minutes with AI 2 APIs

Astrocartography Map

Show where in the world a person thrives — planetary lines on an interactive map.

Interactive relocation astrology: planet lines + location scoring.

What you'll build

  • Astrocartography planet lines (Asc/Desc/MC/IC for Sun, Moon, Venus, Jupiter, Saturn)
  • Location score for any lat/lon — which planets are strong at that city
  • Interactive map with planet-line overlays (Leaflet or Mapbox)
  • City search + "best cities for Venus" type queries

Build this with AI

Copy the full prompt below, paste it into ChatGPT, Claude, Cursor, or Lovable, and get a working Next.js implementation in minutes. No coding skill required.

109 lines Structured context With API endpoints

Step by step

01Get planet lines

Call /v1/western/astrocartography/planet-lines — returns lat/lon coordinate arrays for each planet's Asc, Desc, MC, IC lines. Render these as polylines on a Leaflet/Mapbox map.

GET /v1/western/astrocartography/planet-lines
curl "https://api.lifeastroapi.com/v1/western/astrocartography/planet-lines?date=1990-01-15&time=10%3A30&tz=Asia%2FKolkata&lat=19.076&lon=72.8777" \
  -H "Authorization: Bearer YOUR_API_KEY"
example response
{
  "date": "1990-01-15",
  "time": "10:30",
  "tz": "Asia/Kolkata",
  "lat_step": 2,
  "lines": [
    {
      "planet": "Sun",
      "angle": "ASC",
      "points": [
        {
          "lat": -68,
          "lon": 56.3128
        },
        {
          "lat": -66,
          "lon": 43.3001
        },
        {
          "lat": -64,
          "lon": 35.4222
        }
      ]
    },
    {
      "planet": "Sun",
      "angle": "DSC",
      "points": [
        {
          "lat": -68,
          "lon": -270.6102
        },
        {
          "lat": -66,
          "lon": -257.5974
        },
        {
          "lat": -64,
          "lon": -249.7195
        }
      ]
    }
  ]
}

02Directions from a specific city

When the user clicks a city, call /v1/western/astrocartography/local-space with the birth data and that city's lat/lon. It returns the compass direction of each planet from that place (local space), useful for a "which way is Venus from here" view.

APIs used in this recipe

Next, try building

Ready to try? You get 1,500 free credits — no card needed.

Sign up for free