NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am working on a project in which i'll need to use openstreetmaps and leafletjs. We'll be needing the full map details of a specific country (cities, roads, etc..), along with the a general drawing of rest of the world (country borders, etc..). Since this project should only be accessed within the organization, we can't use links to add an osm layer, and so one possible solution is to download the map. I've found a few downloads, yet I'm not sure they're what I am looking for, and since I'm using leaflet, GeoJSON format gave me great results, I couldn't find a GeoJSON download. With all this in mind, is it possible for me to download the full details of a country, along with a general drawing of the rest of the world (and possibly) in GeoJSON?

I am new to maps, so I apologize for anything out of the ordinary in my questions!

asked 11 Apr '16, 06:03

mabuodeh's gravatar image

mabuodeh
21113
accept rate: 0%

edited 12 Apr '16, 21:38

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


I am working on similar requirement, may help someone.

https://github.com/gagan-bansal/osm-for-my-country

permanent link

answered 30 Nov '16, 04:33

Gagan's gravatar image

Gagan
3053515
accept rate: 14%

In addition to Frederik's doityourself approach, there are companies who can sell you a set of prerendered tiles to your liking. Depending on how frequently you want to get map updates, this can end up being cheaper than the employee time and server cost to maintain your own deployment.

permanent link

answered 11 Apr '16, 11:16

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
accept rate: 19%

What you most likely want to do is to set up a tile server along the lines of the instructions in http://www.switch2osm.org/ - this will let you download raw OSM data and serve it internally in the form of ready-made map tiles. No GeoJSON involved. You will download the country you're interested in and load that into your database, and you will get a couple of shape files from naturalearthdata.com to cover the world at low zoom levels. You will have to modify the default map style ("OSM Carto") slightly, to make use of these shape files - earlier versions of OSM Carto did that by default (use shapefiles for low-zoom country boundaries and place names) but meanwhile OSM Carto relies more on OSM data, and you're not going to load OSM data for the whole world (that would require an unnecessarily big server).

You might also want to look at other map styles like "OSM Bright" that might come with more shape files "built in".

permanent link

answered 11 Apr '16, 06:44

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 11 Apr '16, 06:45

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×123
×74
×2

question asked: 11 Apr '16, 06:03

question was seen: 6,452 times

last updated: 30 Nov '16, 04:33

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum