GeoJSON

(geojson.org)

40 points | by tosh 3 hours ago

10 comments

  • Waterluvian 43 minutes ago
    I’ve applied GeoJSON (among many other GIS tech) for mapping and monitoring tens of thousands of warehouse robots. It works great as long as you squint just a bit, ignoring that it generally calls for long,lat and is designed with the assumption of a world CRS.

    The dangerous part is that some tools fully assume this and will completely screw with calculations if you’re assuming a flatland CRS. So you’ve got to be careful in checking and setting those parameters.

    One nice thing is that the structure of GeoJSON works incredibly well in typescript. It has discriminated unions built in so you can walk entire geodatasets in a pretty comfortable way.

    • papercrane 20 minutes ago
      > It works great as long as you squint just a bit, ignoring that it generally calls for long,lat and is designed with the assumption of a world CRS.

      I thought the spec allowed you to specify the CRS, but I just checked the RFC and they removed that from the 2016 specification and WGS84 is specified. It does allow for alternative CRS with prior arrangement, but like you said that does require a lot of care.

    • sam_lowry_ 30 minutes ago
      > tens of thousands of warehouse robots

      Sounds like Amazon

      • Waterluvian 25 minutes ago
        Definitely not Amazon. Yuck.
  • jackconsidine 1 hour ago
    GeoJSON is super useful. At Getcho (delivery, logistics) we use zip code GeoJSON encodings to draw polygons on zone maps and quickly generate rates. This has been a persistently annoying thing to do until we discovered this format. If you're curious, someone made a repo with all the 2010 census zips a while back [0].

    [0] https://github.com/OpenDataDE/State-zip-code-GeoJSON/blob/ma... although you can generate newer versions from the last census.

    • korkoros 47 minutes ago
      About 25% of ZIP codes don't have a corresponding Census Bureau ZCTA, for example 10118. Do you end up needing special handling for those cases? Or has it not yet come up in practice?
      • jackconsidine 12 minutes ago
        Excellent question it certainly does come up. Practically speaking the more populous zip codes are all accounted for and that’s where the vast majority of deliveries go to. For example I took the census zip code data 150 miles (crow flies) outside Philly and found virtually 100% coverage.

        For missing ones you have to fall back to distance based estimates and in my business that means you’re quote may be off and you’re exposed

  • ragebol 20 minutes ago
    Have been using GeoJSON, very handy and human-readable, but we recently switched to GeoPackage files, as it allows for different layers, each with a different schema for additional data.

    GeoPackages also allow to set a proper CRS, which is not as easy in GeoJSON IIRC.

    Getting your CRSes wrong is fun...

  • michaeljhg 50 minutes ago
  • CamouflagedKiwi 39 minutes ago
    This is nice. I haven't worked with GIS data for ages but I really like the idea of a well-understood plain text container for it. Much nicer than wrangling with binary formats like shapefiles, especially when something goes wrong and you're not sure if it's your code (well more precisely your usage of whatever library you've got for it) or the data.
  • sam_lowry_ 1 hour ago
    Dunno whose website this is, but the format itself is great, and it allows for a relatively compact and relatively human-readable presentation.

    A few weeks ago I (vibe)coded mxmap.be and if not for the ubiquity of geojson, it would have taken me significantly more effort.

    • rippeltippel 59 minutes ago
      Nice work with mxmap. It's a very good way to appreciate to what extent EU depends on US - email providers being just one of several dimensions.
  • mtucker502 40 minutes ago
    The properties key is plural but contains a dictionary. Does the schema allow for this to be a list?
  • tosh 58 minutes ago
    vega-lite supports rendering of GeoJSON via 'geoshape'

    https://vega.github.io/vega-lite/docs/geoshape.html

  • vortegne 24 minutes ago
    Recently I got into cartography software for a bit and the horrors of the data formats in this industry are real. Feels like everyone under the sun has their own.

    All that said, GeoJSON was a great change of pace, I enjoyed using it. While I'm no professional and have no idea what the professional needs are, it was very good for my hobbyist needs.

  • volume_tech 7 minutes ago
    [dead]