You are not logged in.

#1 2019-09-15 12:07:34

David Rashty
New Member
Registered: 2019-09-15
Posts: 2

Export of OSM Israel info to a GeoJSON format

I need help in exporting content within Israel boundaries to a GeoJSON file format

My goal is to load this information into Google Map API as explained in here https://developers.google.com/maps/docu … /datalayer

If anyone has any past experience with such integration it will be very helpful

Direct email david.rashty@gmail.com

Offline

#2 2019-09-15 17:14:13

Harel M
Moderator
From: Israel
Registered: 2013-04-14
Posts: 61
Website

Re: Export of OSM Israel info to a GeoJSON format

Every language you feel comfortable with has an OSM pbf file reader.
I'm using OSMSharp: http://www.osmsharp.com/ to extract the data and insert it to Elasticsearch using the following code:
https://github.com/IsraelHikingMap/Site … ository.cs
https://github.com/IsraelHikingMap/Site … nverter.cs

Offline

#3 2019-09-15 17:18:03

David Rashty
New Member
Registered: 2019-09-15
Posts: 2

Re: Export of OSM Israel info to a GeoJSON format

Thanks!!

Can I use the code you have sent to extract into GeoJSON?

If you are a coder would be happy to discuss over the phone 0544536005

Offline

#4 2020-05-16 19:17:07

SafwatHalaby
Member
Registered: 2017-04-10
Posts: 451
Website

Re: Export of OSM Israel info to a GeoJSON format

If you want only a small subset of data, it is possible to extract it with JOSM (https://josm.openstreetmap.de/).

You can download data by selecting a rectangular bounding box, or by using an Overpass query to download only the specific objects you want. After you have the objects you need, you can export the layer as GeoJSON. If you can specify what you want, I might be able to help with the Overpass. If we're talking about massive amounts of data or the entirety of OSM Israel Data, this is not a good approach and a pbf may be better.

Offline

Board footer

Powered by FluxBB