DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
7 stars 2 forks source link

Ingress - update link to portal image to increase size #113

Closed DJTommek closed 1 year ago

DJTommek commented 1 year ago

Portal images are usually hosted on googleusercontent.com which is API from Google. By default it is resized to save bandwidth, but sometimes you need to have as high resolution as possible.

According https://developers.google.com/people/image-sizing it should be enough to append =s10000 to end of URL, which Sets the longer of height or width to n pixels. So for example instead of having this:

https://lh3.googleusercontent.com/KTNzLkMJFkmR7k7ftQmVz8c758xyE8KmY3Q81QvTARMJn2XNx2RbL96wIbPqfl9lrbCS-m3fhAgDcv34BS8to2bx-A9tUIdpTL50hOid (384 x 512)

URL will look like this:

https://lh3.googleusercontent.com/KTNzLkMJFkmR7k7ftQmVz8c758xyE8KmY3Q81QvTARMJn2XNx2RbL96wIbPqfl9lrbCS-m3fhAgDcv34BS8to2bx-A9tUIdpTL50hOid=s10000 (3024 x 4032)