કન્ટેન્ટ પર જાઓ
API key મેળવો
પશ્ચિમીસેન્ડબોક્સ

Western Astrocartography Lines API

"operation": "western-astrocartography"

વિશ્વ નકશા પર ગ્રહ રેખાઓ દોરો.

POST/v1/astrology/calculate
  • દર મહિને 500 મફત કૉલ
  • કાર્ડની જરૂર નથી
  • નિષ્ફળ ગણતરીઓ મફત છે

રિક્વેસ્ટ

ગણતરી કરો

તમારી API key સાથે તમારા સર્વર પરથી "operation": "western-astrocartography" ને POST /v1/astrology/calculate પર મોકલો.

આ નમૂના પેરામીટર parameters હેઠળ મોકલો: natal. રિક્વેસ્ટમાં બતાવેલું birth માળખું વાપરો. અલગ ફીલ્ડમાં, year/month/day સ્થાનિક કૅલેન્ડરના પૂર્ણાંક છે અને hour/minute સ્થાનિક 24-કલાકનો સમય છે. lat/lng દશાંશ અંશ છે અને tz_str એ IANA ટાઇમ ઝોન છે, અથવા જ્યાં બતાવ્યું હોય ત્યાં AUTO. અંદરના datetime અને location ઑબ્જેક્ટ નમૂના પ્રમાણે હોય છે. જ્યાં લાગુ પડે ત્યાં રિક્વેસ્ટ કૃત્રિમ ઇનપુટ વાપરે છે. જરૂરી હોય ત્યાં નમૂનામાં વૈકલ્પિક સેટિંગ્સ સામેલ છે.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"natal":{"year":1990,"month":5,"day":15,"hour":14,"minute":30,"lat":51.5074,"lng":-0.1278,"tz_str":"Europe/London"}},"operation":"western-astrocartography"}'

રિસ્પોન્સ

બદલામાં શું મળે છે.

દૃષ્ટાંતરૂપ રિસ્પોન્સનો અંશ

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-astrocartography",
    "result": {
      "lines": [
        {
          "id": "sun:mc",
          "body": "sun",
          "angle": "mc",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [
                -72,
                41
              ],
              [
                -72,
                42
              ]
            ]
          }
        }
      ]
    }
  },
  "calculated": true
}

પશ્ચિમી

પરિણામ વડે બનાવો

પાછું મળેલું GeoJSON WGS84 માં longitude, latitude ક્રમે દોરો. ઉદાહરણ ફીલ્ડ: data.result.lines.

એક સફળ કૉલ એક કન્ટેન્ટ રિક્વેસ્ટ વાપરે છે. સેન્ડબોક્સ અને લાઇવ રિક્વેસ્ટના વપરાશના કુલ આંકડા અલગ હોય છે. નિષ્ફળ ગણતરીઓની રિક્વેસ્ટ પાછી મળે છે.