Hacker News new | ask | show | jobs
by spirographer 2919 days ago
Gorgeous! I did notice that the international date line is marked as a voronoi border from north to south pole. If you can do some modulo math trickery you should be able to fix this. You can find all of the cells/airports forming the border to the east of the date line and add fake airports to your data set with longitude 360 larger than the original cells. These will be used to create the correct voronoi border with the cells just to the east. Everything else will stay the same.

Thanks to the transparency of the globe I noticed this when @MereInterest pointed out the 0 0 coordinates of several airports.

By the way if you can find a way to add the airport call letters to the cell when clicked that would be amazing.

1 comments

Great suggestions - thank you. Added both to the list.

Excited to work on that tonight when my daughter goes to sleep :)

I'm looking forward to every update that pops up. Really inspiring!

I made a small error in my explanation for the date line: I meant to say "voronoi border with the cells just to the west" (instead of east)

By the way if you have a list of the 0 0 coordinate airports, I can do a best effort search for their correct location. Let me know,

Thank you - I don't see any 0,0s in the source so I think it's something I need to take account for in the voronoi package - I'll add it to the list :)
if there aren't any 0 0 coordinate airports in the data set, maybe there are some strings that are not parsed as numbers and thus coerced to 0, a space or a non printing character (like a carriage return) can make something that looks like a number, not parse properly.