You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scan the various OpenStreetMap tasking managers and make markets based on their status. This both encourages crossover between the communities, encourages humanitarian work, and yields an ETA for complete data
results= []
last_checked="2022-05-20"_start=datetime.now()
start=f"{_start.year}-{_start.month:2}-{_start.day:2}"forpageincount(start=1):
url=f"https://instance.tld/api/v2/projects/?page={page}&createdFrom={last_checked}&orderBy=id&orderByType=DESC&mappingTypesExact=false&omitMapResults=false"cur_len=len(results)
response=requests.get(url)
ifresponse.statusCode==404:
breakresults.extend(response.json())
iflen(results) ==cur_len:
breaklast_checked=start# queue the new projects
Rules
All of these can be resolved by a single query to the project statistics API. Unfortunately, I need to iterate through every sector to determine if it's complete
Idea
Scan the various OpenStreetMap tasking managers and make markets based on their status. This both encourages crossover between the communities, encourages humanitarian work, and yields an ETA for complete data
Notes
https://tasks.hotosm.org/api-docs
Scanner
Request using something like the following:
Rules
All of these can be resolved by a single query to the project statistics API. Unfortunately, I need to iterate through every sector to determine if it's complete
url = https://{instance}/api/v2/projects/{project_id}/?as_file=false&abbreviated=false
Is Completed
Return true if all squares register as either
"MAPPED"
or"VERIFIED"
Is Verified
Return true if all squares register as
"VERIFIED"
Completion Date
Return the completion date of a project as a fractional year, or
inf
if not completeCompleted Before
This is a composite rule. It is equivalent to
LessThan(CompletionDate(id), ResolveToValue(deadline))
Verified Date
Verified Before
Automatic Market Ideas
Completion Date of Project {title}
Validation Date of Project {title}
Will Project {title} be completed in less than 6 months?
Will Project {title} be completed in less than 3 months?
Will Project {title} be completed in less than 6 weeks?
Will Project {title} be completed in less than 3 weeks?
Will Project {title} be completed in less than 1 week?
The text was updated successfully, but these errors were encountered: