Skip to main content
# osm2geojson

Parse OSM and Overpass JSON with python.

### Usage

Install this package with pip:

```sh
$ pip install osm2geojson
```

If you want to convert OSM xml or Overpass json/xml to Geojson you can import this lib and use one of 2 methods:

* `json2geojson` - to convert Overpass json to Geojson
* `xml2geojson` - to convert OSM xml or Overpass xml to Geojson

__Example:__

```py
import codecs
import osm2geojson

with codecs.open('file.osm', 'r', encoding='utf-8') as data:
xml = data.read()

geojson = osm2geojson.xml2geojson(xml)
# >> { "type": "FeatureCollection", "features": [ ... ] }
```

### Development

Setup package

```sh
$ python setup.py develop
```

Run tests

```sh
$ python -m unittest discover
```

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoformat-20190509.post13.tar.gz (22.3 kB view details)

Uploaded Source

File details

Details for the file geoformat-20190509.post13.tar.gz.

File metadata

  • Download URL: geoformat-20190509.post13.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

File hashes

Hashes for geoformat-20190509.post13.tar.gz
Algorithm Hash digest
SHA256 d01adb5bbb9ddc0db91f43ebb3f69ada10234919d95edba6eb96716a264083fe
MD5 dd6a70307c60df3185b98cd28eb0f106
BLAKE2b-256 d33a08e173ae879d5be9739464c488ae6c555674e2a08c13fbb5b2a528e0c0e3

See more details on using hashes here.

Release history Release notifications | RSS feed

20260910

2 files

20260828

2 files

20260827

2 files

20260315

2 files

20250922

2 files

20250910

2 files

20250825

2 files

20250823

2 files

20250103.1

2 files

20241115

2 files

20240907

1 file

20240906

1 file

20240718

1 file

20240519

1 file

20240407

1 file

20240225

1 file

20240215

1 file

20240211

1 file

20240113

1 file

20231226

1 file

20231225

1 file

20231224

1 file

20231223

1 file

20231222

1 file

20230620

1 file

20230421

1 file

20230116

1 file

20230103

1 file

20221125

1 file

20221123

1 file

20221012

1 file

20220715

1 file

20220625

1 file

20220614

1 file

20220510

1 file

20220205

1 file

20211104

1 file

20210913

1 file

20210725

1 file

20210720

1 file

20210507

1 file

20210423

1 file

20210315

1 file

20210314

1 file

20210308.3

1 file

20210308.2

1 file

20210308

1 file

20210307

1 file

20210212

1 file

20210122

1 file

20210121

1 file

20210116

1 file

20201210

1 file

20201020

1 file

20201012

1 file

20201009

1 file

20201006

1 file

20200906

1 file

20200726

1 file

20200617

1 file

20200424

1 file

20200317

1 file

20200311

1 file

20200309

1 file

20200225

1 file

20200220

1 file

20200202

1 file

20200130.post1

1 file

20200130

1 file

20200118

1 file

20200113

1 file

20200110

1 file

20191224

1 file

20191215

1 file

20191212

1 file

20191209.post1

1 file

20191208

1 file

20191127

1 file

20191126

1 file

20190918

1 file

20190904

1 file

20190809

1 file

20190523

1 file

20190522

1 file

20190512.post1

1 file

20190512

1 file

20190511

1 file

20190510.post7

1 file

20190510.post6

1 file

20190510.post5

1 file

20190510.post4

1 file

20190510.post3

1 file

20190510.post2

1 file

20190510.post1

1 file

This release

20190509.post13 This release

1 file

20190509.post9

1 file

20190509.post7

1 file

20190509.post6

1 file

20190509.post5

1 file

20190509.post4

1 file

20190509.post2

1 file

20190509

1 file

20190508.post2

1 file

2020.726

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page