# 朝日・夕日の見えやすさを判定

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/sceneryJudgment:
    get:
      summary: 朝日・夕日の見えやすさを判定
      deprecated: false
      description: >-
        判定方法について、朝日と夕日の見える度を計算するには、まず、水平線の見える距離を16kmと仮定します。その上で、その16kmに山などの高い物が存在するかどうかを標高を見て計算します。このような計算方法で、朝日見える度（sunriseRate）と夕日見える度（sunsetRate）を判定することができます。

        判定結果について、1.0以上だと、よく見えると判定されます。1.0以下だと、あまり見えなくなっていくと判定されます。0になると、朝日も夕日も全く見えなくなります。

        このような方法を使用することで、朝日と夕日の見える度を精度よく判定することができます。
      operationId: >-
        get_api_sceneryjudgment_year_year_month_month_day_day_lat_lat_lng_lng_height_height
      tags: []
      parameters:
        - name: year
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: month
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: day
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: lat
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: lng
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: height
          in: query
          description: ''
          required: false
          schema:
            type: string
      responses:
        '200':
          description: HTTP 200 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: object
                          properties:
                            month:
                              type: integer
                            year:
                              type: integer
                            day:
                              type: integer
                          x-apidog-orders:
                            - month
                            - year
                            - day
                        sunriseElevation04:
                          type: number
                        sunriseElevation16:
                          type: number
                        sunsetRate:
                          type: number
                        sunriseElevation01:
                          type: number
                        sunriseElevation12:
                          type: number
                        sunriseElevation02:
                          type: number
                        sunsetElevation08:
                          type: number
                        sunriseRate:
                          type: number
                        positions:
                          type: object
                          properties:
                            sunsetAzimuth:
                              type: number
                            moonsetAltitude:
                              type: integer
                            solarNoonAzimuth:
                              type: number
                            sunriseAzimuth:
                              type: number
                            moonriseAzimuth:
                              type: number
                            moonsetAzimuth:
                              type: integer
                            sunsetAltitude:
                              type: number
                            moonriseAltitude:
                              type: number
                            sunriseAltitude:
                              type: number
                            solarNoonAltitude:
                              type: number
                          x-apidog-orders:
                            - sunsetAzimuth
                            - moonsetAltitude
                            - solarNoonAzimuth
                            - sunriseAzimuth
                            - moonriseAzimuth
                            - moonsetAzimuth
                            - sunsetAltitude
                            - moonriseAltitude
                            - sunriseAltitude
                            - solarNoonAltitude
                        sunsetElevation16:
                          type: integer
                        sunsetElevation04:
                          type: number
                        sunsetElevation02:
                          type: number
                        sunsetElevation01:
                          type: number
                        sunsetElevation12:
                          type: number
                        baseElevation:
                          type: number
                        location:
                          type: object
                          properties:
                            coordinate:
                              type: object
                              properties:
                                lng:
                                  type: number
                                lat:
                                  type: number
                              x-apidog-orders:
                                - lng
                                - lat
                          x-apidog-orders:
                            - coordinate
                        sunriseElevation08:
                          type: number
                      x-apidog-orders:
                        - date
                        - sunriseElevation04
                        - sunriseElevation16
                        - sunsetRate
                        - sunriseElevation01
                        - sunriseElevation12
                        - sunriseElevation02
                        - sunsetElevation08
                        - sunriseRate
                        - positions
                        - sunsetElevation16
                        - sunsetElevation04
                        - sunsetElevation02
                        - sunsetElevation01
                        - sunsetElevation12
                        - baseElevation
                        - location
                        - sunriseElevation08
                  status:
                    type: integer
                x-apidog-orders:
                  - results
                  - status
              example:
                results:
                  - date:
                      month: 9
                      year: 2022
                      day: 5
                    sunriseElevation04: 5.2
                    sunriseElevation16: 4.5
                    sunsetRate: 0.9668
                    sunriseElevation01: 11.9
                    sunriseElevation12: 4.2
                    sunriseElevation02: 12.1
                    sunsetElevation08: 5.7
                    sunriseRate: 0.888
                    positions:
                      sunsetAzimuth: 279.34534844444863
                      moonsetAltitude: 0
                      solarNoonAzimuth: 180.5313879944135
                      sunriseAzimuth: 80.79920708663923
                      moonriseAzimuth: 124.18839266974442
                      moonsetAzimuth: 0
                      sunsetAltitude: 358.88421455321674
                      moonriseAltitude: 0.285847884106602
                      sunriseAltitude: 359.4145209861538
                      solarNoonAltitude: 61.145011260658876
                    sunsetElevation16: 25
                    sunsetElevation04: 5.9
                    sunsetElevation02: 6.7
                    sunsetElevation01: 7.5
                    sunsetElevation12: 19.1
                    baseElevation: 8.4
                    location:
                      coordinate:
                        lng: 139.6512
                        lat: 35.8554
                    sunriseElevation08: 13.1
                status: 0
          headers: {}
          x-apidog-name: ''
      security: []
      x-apidog-folder: ''
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1243801/apis/api-32131736-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: jwt
servers:
  - url: https://livlog.xyz/asayuubiyori
    description: https://livlog.xyz/asayuubiyori
security: []

```
