Skip to content
Ryan McAllen edited this page Feb 22, 2014 · 2 revisions

Doe something more awesome with the SCTrails.net website.

Okay, so I'm working off of: http://www.sctrails.net/Trails/ALLTRAILS/Hiking/Upcountry/UPCOUNTRY.html

and trying to generate GeoJSON compatible files.

First pass:

{
    "docs" : [
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [100.6, 10.1]
            },
            "properties": {
                "type": "trails",
                "activity": "hiking",
                "region": "The Upcountry",
                "name": "Fants Grove",
                "milage": "35.0",
                "link": "http://www.sctrails.net/Trails/ALLTRAILS/Multi-use/FantsGrove.html"
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [110.6, 20.1]
            },
            "properties": {
                "type": "trails",
                "activity": "hiking",
                "region": "The Upcountry",
                "name": "Fants Grove",
                "milage": "35.0",
                "link": "http://www.sctrails.net/Trails/ALLTRAILS/Multi-use/FantsGrove.html"
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [120.6, 30.1]
            },
            "properties": {
                "type": "trails",
                "activity": "hiking",
                "region": "The Upcountry",
                "county": "Anderson",
                "area": "Lake Hartwell",
                "name": "Hartwell Lake Dam",
                "milage": "0.6",
                "link": "http://www.sctrails.net/Trails/ALLTRAILS/Hiking/Upcountry/HartwellDam.html"
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [130.6, 40.1]
            },
            "properties": {
                "type": "trails",
                "activity": "hiking",
                "region": "The Upcountry",
                "county": "Anderson",
                "area": "Sadler's Creek State Recreation Area",
                "name": "Bike",
                "milage": "3.9",
                "link": "http://www.sctrails.net/Trails/ALLTRAILS/MountainBike/BikeTrail.html"
            }
        },
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [135.6, 10.1]
            },
            "properties": {
                "type": "trails",
                "activity": "hiking",
                "region": "The Upcountry",
                "county": "Anderson",
                "area": "Sadler's Creek State Recreation Area",
                "name": "Pine Grove",
                "milage": "0.6",
                "link": "http://www.sctrails.net/Trails/ALLTRAILS/Hiking/Upcountry/PineGrove.html"
            }
        }
    ]
}
Clone this wiki locally