Where art thou: Converting addresses to latitude and longitude.

Previously, we have covered how to identify where the user is, based upon navigator.geolocation and based upon their IP address (there are definitely ways to make IP-based geolocation suck less).  I figured that in today’s post, we would look at how to go from an arbitrary physical location (zip code or city name) to latitude and longitude coordinates. Continue reading Where art thou: Converting addresses to latitude and longitude.

How to know your user

There are times when it is very important to know as much as you can about the user of your application.  A good example is how I need to know where the user physically is in order to calculate the distance between them and the park in the state parks app.  Another example is if the user is on a mobile device vs a desktop or if they are online or not, so that you know what to show them and how to do it. Let’s take a look at a few ways you can gather information about the user. Continue reading How to know your user

I didn’t successfully finish Hacktoberfest 2021 and I’m ok with that

Last month, I said that I was going to give Hacktoberfest a try this year.  Now that the month is over, I can say that I didn’t successfully make four contributions.  As it turns out, it was a little more intimidating of a task than I thought it would be and working on things like this blog and the state parks app was a little more interesting.  I might try again next year but in the meantime, I have other stuff going on (including a Drake-themed post that should be dropping on Thursday).

Have any questions, comments, etc?  Feel free to leave them below.

State Parks App: I made some new APIs for the app

Last week, I wrote about creating a cloudflare worker.  When I created that worker, I knew that I wanted to leverage that for the state parks app.  This week, I created three new workers: one to get the user’s location, one to get the list of parks, and one to get an individual park.  Let’s take a look. Continue reading State Parks App: I made some new APIs for the app

Wisconsin is presumably getting more charging?

One of my largest pandemic purchases was a 2016 VW e-Golf and it is a great car but the relatively limited transportation in the great state of Wisconsin means that longer trips aren’t really doable.  Since I am neither a traveling salesman nor a political candidate, that doesn’t tend to be an issue but if I was still commuting daily to Kohler, it might be.

The other day, I was reading an article that said that the governors of Illinois, Indiana, Michigan, Minnesota and Wisconsin had created something called the Regional Electric Vehicle Midwest Coalition.  The plan promises to make it easier to find charging stations, which could boost adoption of electric vehicles if it eases drivers’ concerns about the range of their batteries.  You can read the full Memorandum of Understanding for more details.

I do hope that this spurs modernization of the regional transportation infrastructure but I’m not holding my breath.

I booked airfare to Italy for the first two weeks of Spring

In 2018, I visited China and in 2019, I went a little crazy and visited England (twice), France (twice), Germany, Switzerland, Morocco, and Spain.  In 2020, I wanted to see India and Nepal but the global covid pandemic killed that plan and in the end, it wasn’t even in the card for 2021.  At one point in time, I even had airfare booked to fly from Chicago to Delhi for Oct 13, 2021.

Looking at vaccination rates and which countries allow American visitors, the only real option is Europe.  South America and Asia are out of realm of possibility for 2022.  I lost a lot of money when I had to cancel the India trip (both insurance plans had a clause where they don’t cover global pandemics).  This time around, I am trying to be cautious about when I book stuff.  I don’t want to lose everything if a new virus variant hits.  I am optimistic, though.

The plan is to fly into Rome, spend some time there, take the high-speed train to Venice, and then fly home from Venice.

Have a suggestion for stuff to do or things to see while there?  Feel free to drop a comment, below.

Adding dark mode to your web app

Almost two years ago, I looked at how to use prefers-color-scheme to add “dark mode” to a website.  It isn’t exactly a difficult change to make, so I figured that we could take this week to add it to the State Parks App.  The last time we looked at this, it was supported by everything except IE and Edge.  Now, it is supported by Edge as well.  Like I mentioned last week, Internet Explorer is being EOLed on June 15, 2022, so it might not matter anymore that this doesn’t work with IE. Continue reading Adding dark mode to your web app

Joe Steinbring's thoughts on coding, travel, and life

Exit mobile version