osm-navigation-map icon indicating copy to clipboard operation
osm-navigation-map copied to clipboard

Feed for Mapillary Objects

Open gyllen opened this issue 9 years ago • 12 comments
trafficstars

Lets start thinking about how we can get a feed going with the latest detected objects from Mapillary. The database lookup would be quite expensive. So maybe we can cache something every hour and send back through an API.

We are rewriting our v3 API to use netflix falcor. Is that something you would be able to consider using for getting data from the feed. We will have an easier API REST API as a part of v3. But falcor will give you more abilities to tweak your requests.

gyllen avatar Jul 26 '16 17:07 gyllen

@gyllen this will be super useful to add to a tasking tool like to-fix for mappers to review. How we would use it immediately, is to download a dump of restrictions and review each of them for updating OSM.

@batpad @geohacker any specific preference on the API?

planemad avatar Aug 01 '16 13:08 planemad

For a start being able to grab things in a bbox. But I'll think more.

geohacker avatar Aug 01 '16 13:08 geohacker

@geohacker @planemad Im trying to simplify our spatial APIs at Mapillary and I have this idea that everything should be able to be served by tiles.In the bbox case would it be possible (if we had filters on our vector tiles). To create a small java script tool that had the following API

getObjects(vector_tile_url, filters, bbox)

What this tool then would do is just download the appropriate vector tiles and give back the information thats inside the bbox.

Obviously this will not work for the whole world but for bbox:es I think it makes sense.

gyllen avatar Aug 01 '16 16:08 gyllen

everything should be able to be served by tiles

@gyllen this should be alright. I think if you are going serve this as tiles, then I don't think we need to worry about a bbox filter right now. x/y/z will most likely take care of that requirement for use in something like to-fix.

@planemad what do you think?

geohacker avatar Aug 02 '16 03:08 geohacker

@gyllen Until the v3 api is ready, is there a good way for us to get a JSON dump of all detected objects?

ajithranka avatar Aug 02 '16 10:08 ajithranka

@ajithranka The vector tile layer for objects are ready though. The API is specified in now closed issue #36. Would you be able to create a dump by using vector tiles on level 14 there? This will be for smaller areas though which you can scan frequently. Im still not 100% on using vector tiles as the only way to get spatial information so let me know if you bump into any problems.

I also talked to @planemad about giving you a big dump with all objects for analysis, we can also do that but I think thats another issue. What format would you prefer, I think there are at least a couple of million objects in the dump.

gyllen avatar Aug 02 '16 13:08 gyllen

@gyllen A dump of all detected objects as a JSON file would be the easiest for me to get started with. Perhaps, something similar to what https://a.mapillary.com/#get-searchimor returns.

ajithranka avatar Aug 02 '16 14:08 ajithranka

@planemad @ajithranka Would you guys be up for a Skype call today, I want to start sketching a more permanent solution.

gyllen avatar Aug 02 '16 16:08 gyllen

@gyllen That would be great! It's a little late for us today; do you mind if we setup some time tomorrow?

ajithranka avatar Aug 02 '16 17:08 ajithranka

@ajithranka np problem whenever you guys have time. @planemad should have my email. Im on PST but I start working at 6am

gyllen avatar Aug 02 '16 18:08 gyllen

start working at 6am

😮

planemad avatar Aug 03 '16 07:08 planemad

Hey, adding myself here - would like to be on this call ..

batpad avatar Aug 03 '16 08:08 batpad