[HOT] 10 Years of OSM + HOT?

James Conkling james.lane.conkling at gmail.com
Thu Apr 2 17:02:54 UTC 2015


Hi Pierre,

Any update on CORS errors on the TM?  Still getting Cross Origin Errors
when I make ajax requests.

This would definitely be useful, but there are also workarounds I can use
until this is figured out.

On Tue, Mar 17, 2015 at 1:06 PM, James Conkling <
james.lane.conkling at gmail.com> wrote:

> Threw together some test code:
> http://plnkr.co/edit/MkrooDeQPhmADv4CrnTY?p=preview.  Look at the browser
> console for success/error messages
>
> Can confirm that using the second url (which points to '
> http://tasks.hotosm.org/project/920/tasks.json') throws a CORS error,
> while using the first url (which points to another CORS enabled project
> server) doesn't throw an error.
>
> On Tue, Mar 17, 2015 at 11:58 AM, Pierre GIRAUD <pierre.giraud at gmail.com>
> wrote:
>
>> This is supposed to land on the following code:
>>
>> https://github.com/hotosm/osm-tasking-manager2/blob/master/osmtm/views/project.py#L381
>>
>> Do you have any simple code to test this against? (I'm a bit lazy)
>>
>> Thanks
>>
>>
>> On Tue, Mar 17, 2015 at 4:53 PM, James Conkling
>> <james.lane.conkling at gmail.com> wrote:
>> > Hmmm.  I'm still getting a CORS error when I send an ajax request to
>> > http://tasks.hotosm.org/project/920/tasks.json.
>> >
>> > On Tue, Mar 17, 2015 at 4:37 AM, Pierre GIRAUD <pierre.giraud at gmail.com
>> >
>> > wrote:
>> >>
>> >> Sorry for the delayed answer.
>> >> All the API requests should be CORS enabled. Well, as soon as they use
>> >> XHR.
>> >>
>> >> On Mon, Mar 9, 2015 at 6:48 PM, Mikel Maron <mikel.maron at gmail.com>
>> wrote:
>> >> > Huh I had thought that CORS was enabled for the OSMTM api ... is that
>> >> > not
>> >> > the case Drazen or Pierre?
>> >> >
>> >> > * Mikel Maron * +14152835207 @mikel s:mikelmaron
>> >> >
>> >> >
>> >> > On Monday, March 9, 2015 1:36 PM, James Conkling
>> >> > <james.lane.conkling at gmail.com> wrote:
>> >> >
>> >> >
>> >> >
>> >> > Hey Mikel et al,
>> >> >
>> >> > Glad to see there's work being done on a TM API.  I've been trying to
>> >> > load
>> >> > the tasks.json file into an external app so I can monitor the
>> progress
>> >> > of
>> >> > some HOT projects (the API docs suggest this should be exposed now,
>> even
>> >> > though the rest of the API has not yet been implemented), but am
>> running
>> >> > into issues with Cross Origin requests--requesting as jsonp hasn't
>> >> > worked
>> >> > either.  Am I barking up the wrong tree here, or is this something I
>> >> > should
>> >> > be able to do at this point?  (code is here, in case anyone's
>> >> > interested)
>> >> >
>> >> > On Sun, Mar 8, 2015 at 7:59 PM, Mikel Maron <mikel.maron at gmail.com>
>> >> > wrote:
>> >> >
>> >> > Sam
>> >> >
>> >> > Some additions to the OSMTM API are in staging, and hopefully will
>> >> > deploy
>> >> > soon. Once live, this would allow to grab data on a list of projects.
>> >> > https://github.com/hotosm/osm-tasking-manager2/wiki/API has a few
>> >> > details.
>> >> >
>> >> > -Mikel
>> >> >
>> >> > * Mikel Maron * +14152835207 @mikel s:mikelmaron
>> >> >
>> >> >
>> >> > On Friday, March 6, 2015 1:52 PM, Sam Libby <SLibby at esri.com> wrote:
>> >> >
>> >> >
>> >> >
>> >> > Hi all, wanted to share this great visualization of ten years of OSM
>> >> > edits:
>> >> > https://www.mapbox.com/ten-years-openstreetmap/ in case people had
>> not
>> >> > seen
>> >> > it on social media.
>> >> >
>> >> > A question  for the group – is there an available dataset/API in
>> json,
>> >> > geojson, shapefile, etc that shows the locations of all historical
>> and
>> >> > current HOT tasks – ideally with dates of creation? I know it’s
>> >> > available
>> >> > per-task as geojson but thought it might be available as a big chunk
>> as
>> >> > well.  I think it would be a really interesting overlay to add to the
>> >> > 10-year map or other OSM visualizations – especially in W. Africa
>> during
>> >> > the
>> >> > Ebola epidemic, you can clearly see in the time-based visualization
>> >> > where
>> >> > there were big impacts from the HOT community.
>> >> >
>> >> > Thanks,
>> >> > Sam
>> >> >
>> >> > _______________________________________________
>> >> > HOT mailing list
>> >> > HOT at openstreetmap.org
>> >> > https://lists.openstreetmap.org/listinfo/hot
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > HOT mailing list
>> >> > HOT at openstreetmap.org
>> >> > https://lists.openstreetmap.org/listinfo/hot
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > HOT mailing list
>> >> > HOT at openstreetmap.org
>> >> > https://lists.openstreetmap.org/listinfo/hot
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > HOT mailing list
>> >> > HOT at openstreetmap.org
>> >> > https://lists.openstreetmap.org/listinfo/hot
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> -------------------------------------------------------------
>> >>   | Pierre GIRAUD
>> >> -------------------------------------------------------------
>> >
>> >
>>
>>
>>
>> --
>> -------------------------------------------------------------
>>   | Pierre GIRAUD
>> -------------------------------------------------------------
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/hot/attachments/20150402/f0a32fc3/attachment.html>


More information about the HOT mailing list