fix the polygon
This commit is contained in:
@@ -28,7 +28,7 @@ class PanjareVahedController extends Controller
|
||||
$city = City::query()
|
||||
->whereRaw("ST_Contains(
|
||||
geometry,
|
||||
ST_GeomFromText('POINT($matches[2] $matches[1])', 4326))"
|
||||
ST_GeomFromText('POINT($matches[1] $matches[2])', 4326))"
|
||||
)
|
||||
->firstOrFail(['id', 'name_fa', 'province_id']);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class PanjareVahedController extends Controller
|
||||
$city = City::query()
|
||||
->orderByRaw("ST_Distance(
|
||||
geometry,
|
||||
ST_GeomFromText('POINT($matches[2] $matches[1])', 4326)) ASC"
|
||||
ST_GeomFromText('POINT($matches[1] $matches[2])', 4326)) ASC"
|
||||
)
|
||||
->first(['id', 'name_fa', 'province_id']);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ class PanjareVahedController extends Controller
|
||||
'requested_organization' => $request->requested_organization,
|
||||
'plan_group' => $request->plan_group,
|
||||
'plan_title' => $request->plan_title,
|
||||
'worksheet_id' => $request->worksheet_id,
|
||||
'worksheet_id' => $request->worksheet,
|
||||
'response_options' => json_encode($request->response_options),
|
||||
'isic' => $request->isic,
|
||||
'primary_area' => json_encode($request->primary_area),
|
||||
|
||||
Reference in New Issue
Block a user