ncssar / sartopo_python

Python calls for the caltopo / sartopo API
GNU General Public License v3.0
14 stars 2 forks source link

send locator update for Shared Locations #47

Closed caver456 closed 1 year ago

caver456 commented 1 year ago

This is the same request that was used by Locator Group objects for years. See https://github.com/ncssar/radiolog/issues/576. Radiolog has been sending these requests without sartopo_python, just using requests.get, for years. Now it's probably time to incorporate these requests to sartopo_python.

GET syntax: http://localhost:8080/rest/location/update/position?lat=39&lng=-120&id=FLEET:100-Team1

Notice this does not specify map ID. In the past, any map with a Locator Group object would show these as one Locator per callsign. Now, these show up in Shared Locations, as one location dot per callsign, but there is no left bar entry.

caver456 commented 1 year ago

Since this is not associated with any given map, it won't work with a SartopoSession object. Writing a new class to open a session without a mapID just to accomodate this one case doesn't seem to be worthwhile. The only real reason for this issue was to make the radiolog code look just a bit nicer, but, there's not a compelling reason to rock the boat. Closing for now.