Please sign in to access this page

Static Map API

Static Map API

5 devlogs
4h 29m
•  Ship certified
Created by Sam V

This API can provide a static image of a map of anywhere in the world, with convenient features like different map colour themes or adding pins to the map. I have wanted to be able to use a static map API for a while, but unfortunately most APIs currently available for this are paid or have very limited free tiers. I am hoping I can make my API available completely for free.

Timeline

Ship 1

0 payouts of shell 0 shells

Sam V

3 days ago

Sam V Covers 5 devlogs and 4h 29m

I added actual input validation to the API so now you can't specify parameters that won't work, as well as limiting the size of images to 2000x2000px.

Update attachment
Sam V
Sam V
1h 35m 3 days ago

I made a website home page for the API to teach people how to use it. Also there is now a satellite theme, and some other minor bug fixes and adjustments.

Update attachment

Added many options for customising the map image - you can choose the coordinates to centre the map on, the zoom level, the colour theme, and add a marker. The API is also now documented in a README file.

Update attachment

Added a map page and updated the screenshot API endpoint to send a screenshot of the map. Currently the map is locked to longitude 0 latitude 0.

Update attachment

I set up the API server using Express and used Playwright to take a screenshot of a web page and serve it to the user. I will use this method to provide the static map once I add map functionality.

Update attachment