1. 32
    Understanding the Basics of the GeoJSON Standard
    50s

Understanding the Basics of the GeoJSON Standard

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 4 years ago

Before we jump straight into creating our new dataset, it will help to get an idea of what it is. We'll first walk through what the GeoJSON standard is and what it's trying to achieve.

Click here for exercise instructions

Colby Fayock: [0:00] Before we jump into the data, we want to understand the basics of GeoJSON. At its core, GeoJSON is just a JSON document, but what's special about it is its structure, like its properties type, geometry, and properties, which help define geographic data structures.

[0:12] For type, typically, when you're defining one geographic area, it's going to be called a feature. For geometry, that's going to be the shape. While here, we have a point, which is just a map marker. You can also have things like polygons or circles.

[0:23] Finally, properties can be really whatever you want it to be. While it probably makes sense to try to be consistent with your properties, really, you can add whatever you want. Here, we have a name, or you can add the hours of a restaurant or if they serve vegan food. Ultimately, those properties are up for you to decide.

[0:36] When we want to define more than one feature, we're going to use a feature collection. As you can see, this feature is similar to what we saw before, but the difference is it's collected inside of a feature collection with a features property that includes multiple features. Those basic points should get you started with GeoJSON.

egghead
egghead
~ 35 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today