News for hackers. Stuff that matters.

smatthewaf

Sorry for the late reply! To be honest I hadn't considered it because when I wrote this it was originally to solve a specific problem and that situation always has them in lat/lon rather than lon/lat, but what I'll add to the future to do list is maybe a toggle so if you have them in lon/lat order you can society that and feed them in that way.

I get your point on "DD" being cryptic, I will consider that. Maybe rather than DD, DM, DMS, DecDeg, DegMin, DegMinSec or something slightly more descriptive. Hm.

Show HN: Four Solutions to Valid Parenthesis (LeetCode #20)

https://medium.com/@mcsimpson/solving-leetcode-0020-valid-parentheses-in-four-different-ways-bf3cf0b2098e

LeetCode classifies the Valid Parenthesis problem as easy, but as with all programming challenges, there’s more to it than simply what is on the surface. Let’s take a closer look at the problem description, determine what we can ascertain, and then offer multiple solutions.

( Read More... | no comments | on HN )

Show HN: CoordConversions NPM Module for Map Coordinate Conversions

https://github.com/matthewcsimpson/CoordConversions

I have been working on a project that has multiple repos, all of which have to convert between multiple map coordinate types, so I made an NPM module that allows you to parse and convert between Decimal Degrees, Degrees-Minutes, and Degrees-Minutes-Seconds coordinate types. Niche? Yes. Useful? Also yes (I hope)!

( Read More... | 2 comments | 2 points | on HN )