An Ironic Society

The pandemic started in 2020 tossing all of us in a state of fear, anxiety and upheaval. We were immediately granted anxiety relief through food delivery services, buy now and payback later programs…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Working through APIs with CampDad

There are many ways to solve a problem, and often times the simple solution is not always available. Because of this, it is important to be able to pivot and resolve issues using the resources one has. Our group experienced something like this during the development of our project, “CampDad”.

CampDad is a camping planner application which acts as an informational database for campgrounds throughout the United States. It was meant to simplify the process of researching campsites in way that was simple, efficient, and stylish. Unfortunately, the APIs which provided such information free of charge were severely limited. We were able to find one API, the National Parks Service API, which managed to provide most of what were were looking for.

National Parks Service API and all its responses

Notice how I said “most” and not “all”?

While the NPS API did have the essentials such as weather overview, location overview, accessibility, and a description of each campsite, one thing that was noticeably absent was images. Not being able to see what the campsite looks like is a big problem for a camping planner app. Unfortunately, no free image search API was comprehensive enough to have images of every single campsite in every single national park across the country. Rather than scrap the idea, we decided to create our own images. The body of our website was dynamically generated cards which would display information for all the campgrounds within a national park. When the user searched a park name, each campground would have its own card which showed the information requested from the NPS API. The initial plan was to generate an image of each campsite, however when that idea didn’t work out, we soon discovered that it was possible to dynamically generate a Google Maps display into each individual card.

The Google Maps API is able to take in longitude and latitude coordinates as search queries. Because of this we used the NPS API to return the longitude and latitude of each campsite, and then used those coordinates to generate each individual map using the Google Maps API. Essentially, we found out we were able to use the dynamically generated responses from one API to dynamically generate a response from a different API. So with each user search, the APIs would create a chain reaction of dynamically generated responses that would all get appended on our html page in the form of cards.

The end result was an informational card that displayed a Google Map of each campsite while also being individually Streetview compatible within each card. The new cards look even better than they would if they had been still images and they are more useful for planning a camping trip as well.

Our group showed incredible resolve throughout the development of this project. Rather than cutting corners when our original design faced complications, we used newly discovered concepts to not only work around these issues, but also managed to improve upon our original design.

Add a comment

Related posts:

How ancient remedies are changing modern medicine

Most people prefer to use ancient remedies along with modern medicine to speed up their recovery. Ancient remedies are simple, and they include a change in diet, herbs, massages, and acupuncture…

RazorPay with .Net Core 3.0 with Route API

We were working on .Net Core 3.0 and wanted to integrate with Route API with the SDK, so these are the steps which we followed: 4. Create the Payment or if it has already captured then fetch the…

My 2022 Personal Growth Experience.

Sometimes personal growth is a conscious effort, while at times it just happens. My growth in 2022 just happened, I had to follow suit. Started the year with no plans and an open heart (anything that…