Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Use live data instead of flat files. #23

@ghost

Description

  • Put existing flat file into OpenStreetMap.

    id => node:id
    title => tag:name
    longitude => node:lon
    latitude => node:lat
    location => ? (may no longer have relevance)
    artists => tag:artist_name
    url => tag:source
    imageurl => tag:website_1
    fullimage => tag:website
    description => tag:note, tag:note_1 if more required.

  • Use query-overpass npm module to load nodes from OSM and return base data in a format the client expects.

  • Stand up a MongoDB image store with GridFS, using the following structure.

    {node, thumbnail, image}

  • Include instructions on getting the MongoDB instance running and working with the proxy.

  • Include an images route for both the client and OSM to send users for images and thumbnails.

    GET /images/node: returns an image with the appropriate MIME type.
    POST /images: creates a thumbnail and places the image in the GridFS store.

  • Get OAuth working for the proxy using the iArtNorfolk OSM account.

  • Define a GET /exhibits/id, which returns an exhibit from OSM and the associated image and thumbnail from GET /images/id.

  • Define a POST /exhibits route, which creates an exhibit in OSM. Calls POST /images to place an image there as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions