Alpstein/route-me — pull request #41 by incanus (2012-03-30 21:23:40+00:00)
Title: MapBox/TileStream source updates

I've done these same changes [over on the core project](https://github.com/route-me/route-me/pull/172) and wanted to get them in your fork as well, since that's what I'm using these days. I'll just re-paste the description here, too, since it's the same changes.

This updates the `RMTileStreamSource` to be more in line with MapBox's current offerings. We're finding that most users are simply wanting to use the [MapBox Streets](http://tiles.mapbox.com/mapbox/map/mapbox-streets) layer, as [Foursquare now is](http://mapbox.com/blog/foursquare-switches-mapbox-streets-openstreetmap/), but we want to still retain configurability for other tilesets and custom, local [TileStream](https://github.com/mapbox/tilestream) servers.

* Class rename for clarity. The header still makes mention of using local TileStream servers instead of MapBox's servers if desired.
* Support for [TileJSON](https://github.com/mapbox/TileJSON), which is an open spec that we use for layer specification. A JSON layer manifest can be supplied or downloaded from a URL which provides configuration info for a layer.
* Addition of default `init` without argument for users just wanting to use MapBox Streets, a worldwide street-level base layer.
* In order to keep things light, we are using iOS 5's built-in JSON parsing capability. A runtime assertion is performed to make sure we are on iOS 5 or greater. This will only affect Route-Me users if they are using this tile source already or want to in the future.