sk-zk / lookaround-map

πŸŽπŸ‘€πŸ—Ί
https://lookmap.eu.pythonanywhere.com/
MIT License
54 stars 9 forks source link
apple-look-around

lookaround-map

lookaround-map is a web app for viewing Apple Look Around panoramas on any platform, using reverse-engineered requests to Apple's internal Maps API.

Please don't make automated requests against prod. Check if my Python library streetlevel satisfies your usecase, and if not, set up a local instance of the server to make requests against instead.

Features

Embedding

The panorama viewer can be embedded into another web page. Check out the sample code here.

Setup

git clone https://github.com/sk-zk/lookaround-map.git --recursive
cd lookaround-map
pip install -r requirements.txt
npm i --global rollup
npm i
rollup -c
flask run

Decoding

For browsers which don't natively support HEIC (which is every browser except Safari 17 or higher), the panorama faces must be converted to a supported format before sending them to the client. To do so, one of these three libraries can be used. Simply install the one you like and it will be selected automatically.

1: By default, pillow-heif will be used to decode images. Supports Linux, Mac and Windows.

2: pyheif used to be faster than pillow-heif and is supported for this reason. Supports Linux and Mac.

3: However, the fastest option (that I'm aware of) is my own heic2rgb, which is noticeably faster than the previous two. Supports Linux and Windows.

heic2rgb can also remux the HEVC bitstream of the image to MP4 for browsers which don't support HEIC, but do support HEVC.

TODO

Credits

This app uses icons by eva-icons, boxicons and Liz Bravo.