Support Topics Documentation Slack YouTube Blog

How to update points?


(Nuriddin) #1

How can I update this point:

http://support.backendless.com/public/tbKNZJS4m4VadZYgS59I.png</img>


(Vyacheslav Vdovichenko) #2

Hi Nuriddin,

To update the existing GeoPoint instance you can use [backendless.geoService savePoint:…] method.

GeoPoint instance has @property (strong, nonatomic) NSString *objectId;
and if geopoint is got in response of savePoint: or getPoints: method, then objectId property is set - and savePoint: method makes “update” operation instead “create”.


(Nuriddin) #3

I’d like to change LAT and LON of this point to new LAT and LON changed by user in app and update this point.


(Vyacheslav Vdovichenko) #4

Yes, you can do it:
http://support.backendless.com/public/lI5slYv5fKyBTrgjBnzi.png</img>
http://support.backendless.com/public/YtO6hCH8DovT2GKgltze.png</img>


(Nuriddin) #5

Thanks a lot!!!)))