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.

📋 71 lines🎯 Structured context🔗 With API endpoints

Step by step

01Get planet lines

Call /v1/western/astrocartography/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/lines
curl "https://api.divyastroapi.com/v1/western/astrocartography/lines?date=1986-12-27&time=08%3A14&tz=Asia%2FKolkata&lat=24.45&lon=74.87" \
  -H "Authorization: Bearer dv_live_..."
example response
{
  "lines": [
    { "planet": "Venus", "line_type": "Asc", "coordinates": [[28.6, 77.2], [30.1, 78.4]] },
    { "planet": "Jupiter","line_type": "MC",  "coordinates": [[19.1, 72.8], [21.2, 74.0]] }
  ]
}

02Score a specific city

When the user clicks a city, call /v1/western/astrocartography/score with that lat/lon. Returns which planets are within orb and their strength at that location.

APIs used in this recipe

Next, try building

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

Sign up for free