Commit 55dc55b7 authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

change data type for request for /geodata/cellularPower endpoint

parent 904f7355
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1632,7 +1632,7 @@ func geUpdateGeoDataByName(w http.ResponseWriter, r *http.Request) {

func geGetGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
	// Retrieve coordinates to work with from request body
	var coordinates CoordinatePowerList
	var coordinates GeoCoordinateList
	if r.Body == nil {
		err := errors.New("Request body is missing")
		log.Error(err.Error())
@@ -1655,7 +1655,7 @@ func geGetGeoDataPowerValues(w http.ResponseWriter, r *http.Request) {
	}

	var geocoordinates []am.Coordinate
	for _, geocoordinate := range coordinates.CoordinatesPower {
	for _, geocoordinate := range coordinates.GeoCoordinates {
		geocoordinates = append(geocoordinates, am.Coordinate{
			Latitude:  geocoordinate.Latitude,
			Longitude: geocoordinate.Longitude,