Giter VIP home page Giter VIP logo

pm's Introduction

Architecture BACKEND : https://docs.google.com/presentation/d/1lYZFWvRvmOy5Ij_DgC-H95q_PKXF9jTXKnD1jUtFcRc/edit?usp=sharing

Lien Trello : https://trello.com/b/ugAGCoVi/projet-emergency

Casernes de pompiers de la Métropole de Lyon - Point d'intérêt : https://data.grandlyon.com/jeux-de-donnees/casernes-pompiers-metropole-lyon-point-interet/donnees

TODO: -move loadressources to API.js

  • try to create displayClass(map,markers[]): -addTo group(marker,arg) -reset group(marker)

      '''
    public void update(int vehicleId, String content) throws IOException {
    Vehicule v = getVehicule(vehicleId);
    JsonNode jNode = this.mapper.readTree(content);
    
    
    
    if(jNode.get("fuel")!=null) {
    	v.setFuel(jNode.get("fuel").asDouble());
    }
    
    if(jNode.get("lon")!=null) {
    	v.setLon(jNode.get("lon").asDouble());
    }
    
    if(jNode.get("lat")!=null) {
    	v.setLat(jNode.get("lat").asDouble());
    }
    
    if(jNode.get("crewMember")!=null) {
    	v.setCrewMember(jNode.get("crewMember").asInt());
    }
    
    if(jNode.get("liquidQuantity")!=null) {
    	v.setLiquidQuantity(jNode.get("liquidQuantity").asDouble());
    }
    
    if(jNode.get("facilityRefID")!=null) {
    	v.setFacilityRefID(jNode.get("facilityRefID").asInt());
    }
    
    if(jNode.get("type").asText()!=null) {
    	v.setType(VehiculeType.valueOf((jNode.get("type").asText())));
    }
    
    if(jNode.get("liquidType").asText()!=null) {
    	v.setLiquidType(LiquidType.valueOf((jNode.get("liquidType").asText())));
    }
    

    } '''

pm's People

Contributors

ermizahd avatar johncgit avatar jagen22 avatar amiberr avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ermizahd

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.