Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Mapillary API v3 and add new traffic signs #4050

Merged
merged 1 commit into from
Jun 9, 2017

Conversation

nickplesha
Copy link
Contributor

Hello, this PR updates the Mapillary service to use the new API (v3) and adds support for new traffic signs.

Changes:

Reasons for these changes:

  • Traffico doesn't cover the variety of new traffic signs supported by Mapillary right now so we have a new repository for traffic signs here: https://github.com/mapillary/mapillary_sprite_source
  • Mapillary API v2 is deprecated and will be shut down in the future so we're migrating all apps and integrations to v3

Let me know if you have any questions or need any help to improve the Mapillary integration.

@nickplesha
Copy link
Contributor Author

nickplesha commented Jun 7, 2017

@bhousel Can you review this PR and check if it can be merged? API v2 will be turned off in the near future and we want to switch everyone to v3.

@Nesimm
Copy link

Nesimm commented Jun 7, 2017 via email

@bhousel
Copy link
Member

bhousel commented Jun 8, 2017

@bhousel Can you review this PR and check if it can be merged? API v2 will be turned off in the near future and we want to switch everyone to v3.

Sounds good @nickplesha, I'll try to get it merged today

var position = mapillarySignDefs[d.value];
if (!position) return '<div></div>';
var iconStyle = [
'background-image:url(img/traffic-signs/traffic-signs.png)',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need to run this through context.asset() because once this is on the Rails site, the asset pipeline may rewrite the URL.

if (region === 'de') region = 'eu';
mapillarySignDefs[region] = data;
});
d3.json(context.asset('img/traffic-signs/traffic-signs.json'), function(err, data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(it's done the right way here)

@bhousel
Copy link
Member

bhousel commented Jun 9, 2017

Thanks for this, it looks really good!
I get back a lot more sign detections and a lot faster than before - nice work 👍

screenshot 2017-06-09 10 36 46

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

Successfully merging this pull request may close these issues.

4 participants