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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Bundle works 馃帀 #2

Closed
DenisCarriere opened this issue Jan 10, 2018 · 0 comments
Closed

Web Bundle works 馃帀 #2

DenisCarriere opened this issue Jan 10, 2018 · 0 comments
Assignees
Milestone

Comments

@DenisCarriere
Copy link
Contributor

@migurski @kpwebb Great news! I've got a SharedStreets web bundle working, the biggest hurdle was the Node.js crypto library since it's not yet implemented in the browser.

Here's a demo in the Chrome web console able to generate "on the fly" SharedStreets Intersection Reference IDs (GeoJSON).

sharedstreets javascript

HTML

You can try it out right now by making a simple HTML page.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>SharedStreets.io Javascript</title>
    <script src='https://unpkg.com/sharedstreets/dist/sharedstreets.js'></script>
  </head>
  <body>
  <script>
    console.log(sharedstreets.intersection([110, 45]));
  </script>
  </body>
</html>
@DenisCarriere DenisCarriere added this to the beta milestone Jan 10, 2018
@DenisCarriere DenisCarriere self-assigned this Jan 10, 2018
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

No branches or pull requests

1 participant