sv-tracker

This site hosts historical blue lines from Google Street View. You can overlay these on top of a map to see how the coverage changed over time.

The tiles are accessible through an API.

API

GET /dates

List the archived dates. Returns a JSON array of objects with properties:

Example data

[{ "id": 1, "created_at": "1970-01-01 00:00:00", "max_zoom": 10 }]

GET /tiles

Return an archived PNG tile image.

Query parameters

GET /diff-tiles

Return a PNG tile image representing the difference between two tiles.

Query parameters

The default behaviour is to return blue pixels where the tiles from from and to are different, and transparent pixels where the tiles are identical. The output can be modified using the color parameters:

| Parameter | Default | Description | |-|-|-| | color_same | transparent | Used for pixels where tiles are identical | | color_add | value of color_diff | Used for pixels that exist in to, but not in from | | color_remove | value of color_diff | Used for pixels that exist in from, but not in to | | color_diff | streetview | Used for pixels that differ between to and from |

Color parameters support most CSS color formats, like hex, rgb(a), and color names, plus:

When using hexadecimal CSS colors, the # can be omitted, eg. f0f or aabbccdd.

If an explicit alpha component is supplied, that is used for rendering the tile. If the alpha component is omitted, a semitransparent value is used, matching the street view blue lines layer. The special names transparent and streetview always have a hardcoded alpha component.

Examples

Render just the different pixels: /diff-tiles

Render a full tile with different colors for additions and removals: /diff-tiles?color_same=streetview&color_add=f0f&color_remove=f00