Inspiration
I wanted to do a hack for social good and with all the global emergencies over the last year, from the pandemic to wildfires, I decided to make a website that would easily provide the contact information of emergency services in your local area.
What it does
I built a website where you can enter an address in the text box and search for emergency services in the area along with their contact information.
How I built it
I built the website using HTML, CSS, Bootstrap, and JavaScript. I also got the emergency contact information from the Precisely PSAP API.
Challenges I ran into
I needed to determine how to handle invalid addresses that returned no results from the API. Fortunately, when the API returns no results, the JSON response is empty and I was able to change the UI logic based on whether there were no results. If there were no results, I just display and error message.
Accomplishments that I'm proud of
I am proud of myself for completing a hack that helps benefit the community and make people feel safer and more at ease during these troubling times.
What I learned
I learned how to integrate and API and use authentication. I also learned how to incorporate Bootstrap to make my UI cleaner.
What's next for Emergency Contact Search
It would be great to add the ability to call the emergency services right the application instead of just displaying the phone number.
Built With
- bootstrap
- css
- html
- javascript
- precisely-api
Log in or sign up for Devpost to join the conversation.