Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

static URL for latest output per source #706

Open
andrewharvey opened this issue Sep 21, 2018 · 2 comments
Open

static URL for latest output per source #706

andrewharvey opened this issue Sep 21, 2018 · 2 comments

Comments

@andrewharvey
Copy link
Contributor

The global and regional extracts have static URLs like https://s3.amazonaws.com/data.openaddresses.io/openaddr-collected-global.zip which contains the lastest data, it would be nice to have the same for any source, right now you have to go to its result page http://results.openaddresses.io/sources/au/act/statewide and find the hash for the latest run...

@andrewharvey andrewharvey changed the title URL for latest output static URL for latest output per source Sep 21, 2018
@migurski
Copy link
Member

Here’s an under-documented index of all data URLs in Machine: http://results.openaddresses.io/index.json

The latest_run_processed_url in particular is a URI template that can be expanded to include the au/act/statewide part of the source above, and it resolves to the actual latest run.

@andrewharvey
Copy link
Contributor Author

That's prefect thanks!

I'll leave this ticket open until we can get this link on each result page. It looks like https://github.com/openaddresses/machine/blob/master/openaddr/ci/templates/source.html is the place to do that. The docs at https://github.com/openaddresses/machine/blob/master/docs/install.md look great to help new contributors get started.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants