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

I'm the founder of a startup building a geography based social networking mobile application in which many users basically post things on a map. We are researching the best and ideally most affordable way to create and host an app like this where a lot of people will be viewing a map on their phones. OpenStreetMaps and Leaflet seems like a great answer to our need, but we are trying to figure out if the combination of the two would work as a substitute to something like GoogleMaps or MapBox, which are expensive for large amounts of users. To use Leaflet and OSM, I figure I'm going to have to host the OSM data somewhere, and I was wondering what the best way to do this is. I'm new to OpenStreetMap, but intuition tells me that even a generous project like OSM can't just provide that much data traffic for free-that we will have to find a way to host it. Is my intuition right? What is the best way to use Leaflet with OpenStreetMap in a mobile application with thousands and eventually millions of map-tile requests a day?

asked 05 Apr '16, 20:46

GeOh's gravatar image

GeOh
11112
accept rate: 0%

what is "meteor.js"? which you've added as tag...

(05 Apr '16, 21:20) aseerel4c26 ♦

If you have a more specific question regarding Leaflet in a mobile application, please ask as a new question with all the other general stuff stripped.

(05 Apr '16, 21:32) aseerel4c26 ♦

Welcome to the OSM world! :-) Great that you are considering this step.

Mapbox mostly (only?) uses OSM data, by the way.

Our documentation wiki will be helpful for you: see e.g. https://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map or have a look at other mobile apps (many open source).

The usual process is to create map images ("tiles") of our raw data which are displayed by some toolkit like leaflet.

Yes, you are right, we are running only on donations and cannot handle much traffic to our tile servers. But, as described in the last link, you can download the raw data and make and host your own map tiles, or pay some company for the usage (likely much cheaper – and more flexible – than google).

permanent link

answered 05 Apr '16, 21:25

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 05 Apr '16, 21:31

3

www.switch2osm.org has instructions about setting up your own tile server. A couple million tiles a day can be delivered from a single server, but you may want to consider having several, for availability. Free help is available on this help system, and some professional consultants are listed on our wiki page.

(05 Apr '16, 21:39) Frederik Ramm ♦
2

Leaflet is a javascript library to display a slippymap, and Mapbox users often use leaflet too.

I encourage you to try runing your own tile server, but also check the total cost of doing so. The price of the Mapbox service might seem much more reasonable once you know what build-your-own entails.

For some details about using the tiles from openstreetmap.org, see http://wiki.openstreetmap.org/wiki/Tile_usage_policy .

(06 Apr '16, 10:50) Vincent de P... ♦

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:

×74
×42
×40
×5
×1

question asked: 05 Apr '16, 20:46

question was seen: 8,031 times

last updated: 06 Apr '16, 10:50

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