Hi everyone,
Re Locations plugin - I’m hoping this is the right place for support? Please point me in the right direction if not
I’m trying to update the location of an existing Topic via the API but it doesn’t appear to be working. Is there any documentation for this?
Currently I can add a new Topic via the API and also include a Location (lat/lng) at the same time using:
strServiceURL &= "&location={""geo_location"": {""lat"": """ & Session("AddLocactionLAT") & """,""lon"": """ & Session("AddLocactionLNG") & """,""address"": """ & strRegionName & """},""name"": """"}"
This works fine, no problem
But when I edit a Topic (i.e. a discourse Post ID) via the API the Location doesn’t update.
I’m appending the same code to the url/endpoing:
Dim strServiceURL As String = "https://MY.DOMAIN/posts/" & intGADCPostID & ".json"
strServiceURL &= "?post[raw]=" & strBody
strServiceURL &= "&location={""geo_location"": {""lat"": """ & Session("AddLocactionLAT") & """,""lon"": """ & Session("AddLocactionLNG") & """,""address"": """ & strRegionName & """},""name"": """"}"
When I use this method above, the post body/content changes correctly but the Location remains exactly as it was before.
Am I doing something wrong here?