dronefly-garden / dronefly

Red Discord Bot V3 cogs for naturalists.
Other
16 stars 3 forks source link

inatcog: provide map image in command response #19

Closed synrg closed 4 years ago

synrg commented 5 years ago

For some commands, it may make sense to provide a map image in the command response as well as a link to the web for closer inspection. A map directly output in channel could convey the information more efficiently to a group of people than having each person click the link.

While Discord has no direct support for Google maps, here's a plan to support it:

See also #18 which could benefit from this.

synrg commented 5 years ago

This would be more reasonably accomplished using the API, retrieving tiles and assembling them into an image that is uploaded to Discord. See https://pypi.org/project/tilecloud/ which may prove useful (or some package like it) and also http://api.inaturalist.org/v1/docs/#/Observation_Tiles .

michaelpirrello commented 4 years ago

Potentially expensive task that wouldn't necessarily provide a better result than the web (no ability to use layers) and would take significant vertical screen space to be large enough to be useful given present interface.

synrg commented 4 years ago

What might change my mind on this one is if Discord coughs up the user interface changes soon that allow us to build features like this in a useful way (i.e. if the map were interactive, not static, then we'd have something!) I'm going to go ahead and close the issue since it's not immediately actionable. If things change, we can always reopen it again later.