Giter Club home page Giter Club logo

cityiq-starter-code's Introduction

This sample code uses node.js and node-fetch
The sample code runs in the command line and returns data the user has access to.

To recieve access, please contact your municipality for the appropriate credentials and replace them in cityCredentials.js. For more information about the simulated data, please visit: https://ie-cities-docs.run.aws-usw02-pr.ice.predix.io/#r_intelligent_cities_appendix_a.html

to run demo0.js the parking demo: within the starter code directory, run the command: $ node demo0.js

all other demo#.js files run separately and only require cityiq.js and cityCredentials.js

Details about api-starter-code:

demo#.js is where modifications should be made. Input your own credentials to credentials.js and make appropriate modifications to the demo#.js files' city variable.

Please note, the simulated data makes all predix-zone-ids available to you, however some cities may restrict what access and therefore zones you have.

Cities may vary their predix-zone-ids therefore modify the zone-id variables as needed within the demo#.js code. Also note the urls available to you may not be complete with the corect endings following predix.io, please compare them with the simulated data urls to ensure functionality

  1. ensure node.js is in your path

  2. in the ic-apis-starter folder run the following command: $ npm install node-fetch --save

  3. to run the code select a demo file and run : $ node demoX.js to view output

cityiq-starter-code's People

Contributors

cityiq avatar jethompson911 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.