Code Monkey home page Code Monkey logo

esmapv2's People

Contributors

davnit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esmapv2's Issues

Lots of PHP Notices being generated

I didn't notice this with initial testing, probably due to server configuration.

PHP Notice: Undefined index: geodata in /home/[redacted]/public_html/esmap2/ingest.php on line 246
PHP Notice: Undefined property: stdClass::$call_time in /home/[redacted]/public_html/esmap2/generate.php on line 100
PHP Notice: Undefined index: calldata in /home/[redacted]/public_html/esmap2/ingest.php on line 44
PHP Strict Standards: Only variables should be passed by reference in /home/[redacted]/public_html/esmap2/ingest.php on line 283

Search by location and time

Add a search feature that allows a user to select a location and time frame and returns all calls within a radius of that location.

Handle data reporting errors

When data is reported (calls or geocodes), if the server returns an error the client currently just ignores it. This leads to an out-of-sync client or geocoding API request spam. Ideally reports that fail to be submitted should be saved and submitted again later.

Create parser for the Orlando Fire Department (OFD)

There are no unique identifiers for a call other than the time. Will probably need to use CRC32 of time, location, and type or something similar.

They don't give street numbers in the addresses, only the street name or intersection. They do however give coordinates, but I'm not sure if these are exact or approximate. Either way since there are coordinates without an address, a way to submit geocodes to be reversed would be needed.

Latest parsers aren't available

Hello @Davnit! I really love ESMap. I was trying to setup my own instance so I could make some improvements for mobile + containerize it.

Can you make sure the source is up to date so I can open pull requests?

Warnings on ingest for some call updates

Found in log files... usually just this line:

[16-Mar-2017 23:06:12 America/New_York] PHP Warning: array_key_exists(): The first argument should be either a string or an integer in ~/public_html/esmap/ingest.php on line 189

On one instance the following also occurred:

[16-Mar-2017 15:20:32 America/New_York] PHP Notice: Undefined index: OCFR-170750323 in ~/public_html/esmap/ingest.php on line 210
[16-Mar-2017 15:20:32 America/New_York] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in ~/public_html/esmap/ingest.php on line 215

Client start has awkward location syncing

Since the server does its own processing of locations, when the client is restarted, the server can only send it the post-processed locations. When the client checks the source for the first time, many locations will appear different since they have not undergone that processing. The client then submits these changes and returns a mismatch since the server rejects them.

This bug is mostly cosmetic and only has a very minor effect on efficiency (some extra data is sent on first start).

Need parser for the updated FHP website

The new site can be found here. Only calls for Orange County need to be included in the parsing results. I've looked into it, but the nature of the new service they are using makes it difficult to even find where the data is generated from.

Handle geocode API reaching request limit

Right now the client will just continue requesting geocodes and trying to resolve them despite reaching the limit. The client should wait after receiving OVER_QUERY_LIMIT before making any additional requests.

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.