GitSpatial

A spatial API for your GitHub-hosted GeoJSON.

Learn more Login with GitHub »

What?

GitHub renders GeoJSON and makes collaborating simple. But how do I visualize this data?

GitSpatial provides a spatial API for your GitHub-hosted GeoJSON so you can do things like bounding box and point+radius queries. Easily.

How?

Log into GitSpatial with your GitHub account and sync any repos that contain GeoJSON.

When you push commits to your repo, we'll automaticlally sync any updates you've made, and any API calls you make will reflect these changes.

Help

This is an open source project so enhancements and patches are encouraged.

So grab the code, report bugs and let me know what you think.

Learn More »


The API

Example Requests

Let's find all the parks for an area ...

http://gitspatial.com/api/v1/JasonSanford/mecklenburg-gis-opendata/parks?bbox=-80.8633,35.2071,-80.8158,35.2488

... or all the schools within 4000 meters of a point.

http://gitspatial.com/api/v1/JasonSanford/mecklenburg-gis-opendata/schools?lat=35.256&lon=-80.809&distance=4000

Example Responses

The Parks

{
    "type": "FeatureCollection",
    "features": [
        {
            "geometry": {
                "type": "Point",
                "coordinates": [-80.827706, 35.227213]
            },
            "type": "Feature",
            "properties": {
                "city": "CHARLOTTE",
                "address": "739 E 12TH ST",
                "type": "NEIGHBORHOOD PARK",
                "name": "ALEXANDER NEIGHBORHOOD PARK"
            },
            "id": 21300
        },
        {
            "geometry": {
                "type": "Point",
                "coordinates": [-80.839708, 35.217964]
            },
            "type": "Feature",
            "properties": {
                "city": "CHARLOTTE",
                "address": "800 E 2ND ST",
                "type": "RECREATION CENTER",
                "name": "AQUATIC CENTER"
            },
            "id": 21306
        },
        ...
    ]
}
The Schools
{
    "type": "FeatureCollection",
    "features": [
        {
            "geometry": {
                "type": "Point",
                "coordinates": [-80.814459, 35.228896]
            },
            "type": "Feature",
            "properties": {
                "address": "1411 Hawthorne Lane",
                "name": "Hawthorne High School",
                "city_state": "Charlotte, NC"
            },
            "id": 25995
        },
        {
            "geometry": {
                "type": "Point",
                "coordinates": [-80.824366, 35.257127]
            },
            "type": "Feature",
            "properties": {
                "address": "2801 Lucena Street",
                "name": "Druid Hills Academy",
                "city_state": "Charlotte, NC"
            },
            "id": 25987
        },
        ...
    ]
}