Commit 2b7b09b7 authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

change type for RSRQ/RSRP in response of /geodata/cellularPower endpoint

parent 55dc55b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -404,12 +404,12 @@ definitions:
        description: "Longitude of a second element for query purpose."
      rsrq:
        type: "integer"
        format: "uint8"
        format: "int32"
        description: "Reference Signal Received Quality as defined in ETSI TS 136\
          \ 214."
      rsrp:
        type: "integer"
        format: "uint8"
        format: "int32"
        description: "Reference Signal Received Power as defined in ETSI TS 136 214."
      poaName:
        type: "string"
+2 −2
Original line number Diff line number Diff line
@@ -1674,8 +1674,8 @@ func geGetGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
		var intCoordinatePower = CoordinatePower{
			Latitude:  coordinatePower.Latitude,
			Longitude: coordinatePower.Longitude,
			Rsrq:      uint8(coordinatePower.Rsrq),
			Rsrp:      uint8(coordinatePower.Rsrp),
			Rsrq:      int32(coordinatePower.Rsrq),
			Rsrp:      int32(coordinatePower.Rsrp),
			PoaName:   coordinatePower.PoaName,
		}
		intCoordinatesPower.CoordinatesPower = append(intCoordinatesPower.CoordinatesPower, intCoordinatePower)
+2 −2
Original line number Diff line number Diff line
@@ -34,10 +34,10 @@ type CoordinatePower struct {
	Longitude float32 `json:"longitude"`

	// Reference Signal Received Quality as defined in ETSI TS 136 214.
	Rsrq uint8 `json:"rsrq"`
	Rsrq int32 `json:"rsrq"`

	// Reference Signal Received Power as defined in ETSI TS 136 214.
	Rsrp uint8 `json:"rsrp"`
	Rsrp int32 `json:"rsrp"`

	// Name of the POA for which RSRP/RSRQ values are calculated.
	PoaName string `json:"poaName"`