whosonfirst-data / whosonfirst-data-postalcode

Postal codes for Who's On First
Other
5 stars 3 forks source link

Fill in missing wof:repo property to all postcode records #11

Closed nvkelso closed 8 years ago

nvkelso commented 8 years ago

For instance:

curl -X GET 'https://whosonfirst.mapzen.com/api/rest/?method=whosonfirst.places.getDescendants&access_token=<token_here>&id=421201565&page=1&per_page=100'

results in:

{
    "results": [
        {
            "wof:id": 538426415,
            "wof:parent_id": "421201565",
            "wof:name": "4046",
            "wof:placetype": "postalcode",
            "wof:country": "VE",
            "wof:repo": null
        },
        {
            "wof:id": 538426407,
            "wof:parent_id": "421201565",
            "wof:name": "4036",
            "wof:placetype": "postalcode",
            "wof:country": "VE",
            "wof:repo": null
        },
        {
            "wof:id": 538426409,
            "wof:parent_id": "421201565",
            "wof:name": "4037",
            "wof:placetype": "postalcode",
            "wof:country": "VE",
            "wof:repo": null
        },
        {
            "wof:id": 538426411,
            "wof:parent_id": "421201565",
            "wof:name": "4044",
            "wof:placetype": "postalcode",
            "wof:country": "VE",
            "wof:repo": null
        }
    ],
    "total": 4,
    "page": 1,
    "per_page": 100,
    "pages": 1,
    "stat": "ok"
}

But it's unclear how any of those Null Island postcodes become parented by a point record anyhow!

nvkelso commented 8 years ago

Related: https://github.com/whosonfirst-data/whosonfirst-data-postalcode/issues/12

thisisaaronland commented 8 years ago

Done.