AR foundation Geospatial spawning objects through code HELP!

Hello, I have one problem. I am creating android app using AR and Cesium, and I want to spawn objects in code.
When I drag and drop them in Unity, everything works perfectly, but I want to spawn it in code, so it will be easier to spawn more items then drag and dropping each.

Is there any built in function that takes longitude, latitude, altitude, and prefab, and spawns it on map.

I tried something like
GeospatialController.Instance.AddLocation(lat, long, GeospatialAssetPrefab)
or

var anchor =GeospatialController.AnchorManager.AddAnchor(lat, long,alt ,quaternion);
var anchoredAsset = Instantiate(GeospatialAssetPrefab, anchor.transform);
(i found this one on Use Geospatial anchors to position real-world content on Unity  |  ARCore  |  Google for Developers , but I am doing something wrong cause it says:
An object reference is required for the non-static field, method, or property ‘GeospatialController.AnchorManager’

I am writing everything in my script, with
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
using TMPro;
using Google.XR.ARCoreExtensions.Samples.Geospatial;
using UnityEngine.Networking;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;

GeospatialController geospatialController = new GeospatialController();
ARAnchorManager anchorManager = geospatialController.AnchorManager;
Quaternion eunRotation = Quaternion.identity;
var anchor = anchorManager.AddAnchor(geospatialController.AnchorManager, 12.34, 56.78, 3, eunRotation);
var anchoredAsset = Instantiate(GeospatialAssetPrefab, anchor.transform);
I came to this, i think bold part is problem. Now, it says No overload for method ‘AddAnchor’ takes 5 arguments, if i remove it it says No overload for method ‘AddAnchor’ takes 4 arguments, here שימוש בעוגנים גיאו-מרחביים כדי למקם תוכן מהעולם האמיתי ב-Unity  |  ARCore  |  Google for Developers it says it need to take 4 arguments, i dont know what to do

Unity is not affiliated with Google’s geospatial sample code. I’m not sure what Google is trying to do here based on your code sample-- I’d recommend reaching out to Google: Issues · google-ar/arcore-android-sdk · GitHub