Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harmful-osm-edits

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harmful-osm-edits

Repository of problematic feature edits on OpenStreetMap

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Problematic feature edits on OpenStreetMap

Setup

# Clone repository and install required packages
git clone git@github.com:mapbox/harmful-osm-edits.git
cd harmful-osm-edits
npm install

# Generate an example fixture for Mapbox, Bangalore
./generate-fixture.js --type node --id 3352016856 --version 21

# Generate a new fixture passing required arguments
./generate-fixture.js --type featureType --id featureId --version featureVersion

Format

{
  "description": "Description of what makes this feature edit problematic",
  "newVersion": "Feature that was problematic",
  "oldVersion": "Version of feature before the problematic change"
}

Example

An ideal fixture with a great description, newVersion and oldVersion.

{
    "description": "This feature is problematic because ...",
    "newVersion": {
        "type": "Feature",
        "id": "node!3352016856!21",
        "properties": {
            "addr:city": "Bangalore",
            "addr:housenumber": "221, 2nd Floor",
            "addr:landmark": "Above State Bank of India Women's Branch",
            "addr:postcode": "560038",
            "addr:street": "13th Cross, 2nd Main",
            "brand:wikidata": "Q17068357",
            "name": "Mapbox",
            "name:hi": "मॅपबॉक्स",
            "name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
            "name:ml": "മാപ്പ്ബോക്സ്",
            "name:ru": "Мапбокс",
            "name:ta": "மேப்பாக்ஸ்",
            "name:uk": "Мапбокс",
            "office": "company",
            "operator": "Mapbox Technologies India Private Limited",
            "website": "http://www.mapbox.com",
            "wikipedia": "en:Mapbox",
            "osm:type": "node",
            "osm:id": 3352016856,
            "osm:version": 21,
            "osm:changeset": 43344070,
            "osm:timestamp": 1478070497000,
            "osm:uid": 1306,
            "osm:user": "PlaneMad"
        },
        "geometry": {
            "type": "Point",
            "coordinates": [
                77.6368034,
                12.9810816
            ]
        }
    },
    "oldVersion": {
        "type": "Feature",
        "id": "node!3352016856!20",
        "properties": {
            "addr:city": "Bangalore",
            "addr:housenumber": "221, 2nd Floor",
            "addr:landmark": "Above State Bank of India Women's Branch",
            "addr:postcode": "560038",
            "addr:street": "13th Cross, 2nd Main",
            "name": "Mapbox",
            "name:hi": "मॅपबॉक्स",
            "name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
            "name:ml": "മാപ്പ്ബോക്സ്",
            "name:ru": "Мапбокс",
            "name:ta": "மேப்பாக்ஸ்",
            "name:uk": "Мапбокс",
            "office": "company",
            "website": "http://www.mapbox.com",
            "wikipedia": "en:Mapbox",
            "osm:type": "node",
            "osm:id": 3352016856,
            "osm:version": 20,
            "osm:changeset": 42368001,
            "osm:timestamp": 1474620794000,
            "osm:uid": 3460649,
            "osm:user": "Amisha Singla"
        },
        "geometry": {
            "type": "Point",
            "coordinates": [
                77.6368034,
                12.9810816
            ]
        }
    }
}

A fixture where feature is deleted in it's newVersion, thus has only oldVersion.

{
    "description": "This feature is problematic because ...",
    "newVersion": {},
    "oldVersion": {
        "type": "Feature",
        "id": "node!3352016856!21",
        "properties": {
            "addr:city": "Bangalore",
            "addr:housenumber": "221, 2nd Floor",
            "addr:landmark": "Above State Bank of India Women's Branch",
            "addr:postcode": "560038",
            "addr:street": "13th Cross, 2nd Main",
            "brand:wikidata": "Q17068357",
            "name": "Mapbox",
            "name:hi": "मॅपबॉक्स",
            "name:kn": "ಮ್ಯಾಪ್ ಬಾಕ್ಸ್",
            "name:ml": "മാപ്പ്ബോക്സ്",
            "name:ru": "Мапбокс",
            "name:ta": "மேப்பாக்ஸ்",
            "name:uk": "Мапбокс",
            "office": "company",
            "operator": "Mapbox Technologies India Private Limited",
            "website": "http://www.mapbox.com",
            "wikipedia": "en:Mapbox",
            "osm:type": "node",
            "osm:id": 3352016856,
            "osm:version": 21,
            "osm:changeset": 43344070,
            "osm:timestamp": 1478070497000,
            "osm:uid": 1306,
            "osm:user": "PlaneMad"
        },
        "geometry": {
            "type": "Point",
            "coordinates": [
                77.6368034,
                12.9810816
            ]
        }
    }
}

Keywords

FAQs

Package last updated on 17 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc