<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Postzen on Medium]]></title>
        <description><![CDATA[Stories by Postzen on Medium]]></description>
        <link>https://medium.com/@postzen?source=rss-e7cffa548f9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*smSHcLU7pnTDN33URs8kiw.png</url>
            <title>Stories by Postzen on Medium</title>
            <link>https://medium.com/@postzen?source=rss-e7cffa548f9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:19:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@postzen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[‘/v1/search’ing for the Road Ahead]]></title>
            <link>https://medium.com/postzen/v1-searching-for-the-road-ahead-5999d17dc428?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5999d17dc428</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 02:48:45 GMT</pubDate>
            <atom:updated>2018-02-09T02:48:45.410Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/juliansimioni">Julian Simioni</a> on 31January 2018.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hAGuayNXnE46l2TD.jpg" /></figure><p><em>Image Credit: </em><a href="https://www.nasa.gov/image-feature/saying-goodnight"><em>NASA/Mark Vande Hei</em></a></p><p>Here on the geocoding team at Mapzen, we’ve grown to love what we do. As soon as the Mapzen shutdown was announced, we started looking into ways where we could continue to work on geocoding and <a href="http://pelias.io/">Pelias</a>, the open source geocoder we’ve been building at Mapzen.</p><p>Just last week we announced that <a href="https://geocode.earth/">geocode.earth</a> is live and ready. It’s hosted geocoding, based on Pelias. It’s owned and operated by a new, independent company that we’ve founded.</p><p>We’ve done this for two reasons. The first, obviously, is to provide an easy migration path for anyone using Mapzen Search. Thanks to the open source commitment at Mapzen not just for the geocoder itself, but for the infrastructure around it, we’ve been able to do that in a very short time.</p><blockquote><em>If you were using </em><a href="https://twitter.com/mapzen?ref_src=twsrc%5Etfw"><em>@mapzen</em></a><em> and worried about the shutdown next week, </em><a href="https://t.co/cKYQ88lu99"><em>https://t.co/cKYQ88lu99</em></a><em> is a perfect drop-in replacement. Literally just changed API keys and endpoints, and it worked. </em><a href="https://t.co/S2AyzCLXSI"><em>https://t.co/S2AyzCLXSI</em></a></blockquote><blockquote><em>— Andy Baio (@waxpancake) </em><a href="https://twitter.com/waxpancake/status/956991836849168384?ref_src=twsrc%5Etfw"><em>January 26, 2018</em></a></blockquote><p>The second reason we launched <a href="https://geocode.earth/">geocode.earth</a> is to provide a way for us to continue to spend time growing the Pelias open source project.</p><p>In the days after Mapzen’s shutdown announcement we heard from people all over the world who were using and loving Pelias. Some we knew, but others were reaching out for the first time.</p><p>A great example is the <a href="https://planninglabs.nyc/">NYC Planning Labs</a>. They launched their own Pelias-based geocoder with features specifically to handle the nuances of New York City address data in under a week.</p><blockquote><em>We started standing up </em><a href="https://twitter.com/mapzen?ref_src=twsrc%5Etfw"><em>@mapzen</em></a><em> Pelias geocoder on Monday, </em><a href="https://twitter.com/juliansimioni?ref_src=twsrc%5Etfw"><em>@juliansimioni</em></a><em> showed up to our sprint demo on Friday with words of encouragement and technical guidance! This is why we are </em><a href="https://twitter.com/hashtag/opensource?src=hash&amp;ref_src=twsrc%5Etfw"><em>#opensource</em></a><em> at </em><a href="https://twitter.com/nycplanninglabs?ref_src=twsrc%5Etfw"><em>@nycplanninglabs</em></a><em>. Thanks!</em></blockquote><blockquote><em>— Chris Whong (@chris_whong) </em><a href="https://twitter.com/chris_whong/status/951968880402018304?ref_src=twsrc%5Etfw"><em>January 13, 2018</em></a></blockquote><p>The Planning Labs is already contributing back to the project in big ways. Many others have been doing so for years. We’ll continue to be right there with them.</p><p>In other words, we’ve listened to <a href="https://mapzen.com/blog/a-letter-just-to-you/">Velvet Underground’s first album</a>, and we’re starting a band. We look forward to performing for, and with, all of you. See you at conferences, events, and of course, around the internet!</p><p><em>Originally published at </em><a href="https://mapzen.com/blog/v1-searching-for-the-road-ahead/"><em>mapzen.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5999d17dc428" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/v1-searching-for-the-road-ahead-5999d17dc428">‘/v1/search’ing for the Road Ahead</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long-term support for Mapzen maps, vector & terrain tiles]]></title>
            <link>https://medium.com/postzen/long-term-support-for-mapzen-maps-vector-terrain-tiles-a45e108943b4?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a45e108943b4</guid>
            <category><![CDATA[vector-tiles]]></category>
            <category><![CDATA[tangram]]></category>
            <category><![CDATA[cartography]]></category>
            <category><![CDATA[terrain]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 02:46:50 GMT</pubDate>
            <atom:updated>2018-02-09T02:46:50.971Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/iandees">Ian Dees</a>, <a href="https://twitter.com/kelsoscorner">Nathaniel Vaughn Kelso</a>, <a href="https://twitter.com/rmarianski">Rob Marianski</a>, <a href="https://twitter.com/zerebubuth">Matt Amos</a>, <a href="https://twitter.com/sensescape">Geraldine Sarmiento</a>, <a href="https://twitter.com/professorlemeza">Brett Camper</a> on 30 January 2018.</p><p>As Mapzen hosted services enter final shutdown we’re proud to offer long-term support for the maps, basemap designs, and the vector and terrain tile data that has powered Mapzen’s cartography. To enjoy the maps into the future, you’ll need to make a few updates to your projects.</p><p>This post details new long-term support endpoints for various map display related services and libraries, and provides information on accessing the new requester pays S3 bucket which features archival December 2017 vector tiles for the entire world.</p><p>See it all together at <a href="https://tile.nextzen.org/preview.html">tile.nextzen.org/preview.html</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TncrhFpwzJSipOuv.gif" /></figure><p>All basemaps have been updated to use the new Nextzen sources, but you’ll need to import a new major version from a new web location.</p><p>For example, this Tangram scene file example imports Refill, adds Blue as a color theme, shows more labels, using the new Nextzen endpoints:</p><pre>import: - https://www.nextzen.org/carto/refill-style/11/refill-style.zip - https://www.nextzen.org/carto/refill-style/11/themes/color-blue.zip - <a href="https://www.nextzen.org/carto/refill-style/11/themes/label-10.zip">https://www.nextzen.org/carto/refill-style/11/themes/label-10.zip</a></pre><p>The updated basemap scenes files also include many <a href="https://mapzen.com/blog/long-term-support-mapzen-maps/#ps-show-me-the-icons">new icons</a> and a few bug fixes, and are fully documented <a href="https://mapzen.com/blog/long-term-support-mapzen-maps/#all-together-now...">below</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*vm05TEhnwSe4w3Pu.png" /></figure><h3>Rendering maps with Tangram JS</h3><p>The basemaps are written in the Tangram scene file syntax, and the Tangram JS library is available for import to your Javascript projects via a new Nextzen endpoint:</p><pre>&lt;script type=&quot;text/javascript&quot; src=&quot;https://www.nextzen.org/tangram/0.14/tangram.min.js&quot;&gt;&lt;/script&gt;</pre><p>Tangram JS, Tangram ES, and <a href="https://tangram.city/play/">Tangram Play</a> remain open source projects.</p><p>NOTE: The <a href="https://github.com/mapzen/mapzen.js">Mapzen.js</a> wrapper around Tangram is not currently ported over to Nextzen. <a href="http://eepurl.com/diYJzD">Stay in touch</a> if that’s important to you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*2ixHXsNEh1OO0HZy.png" /></figure><h3>Vector Tiles</h3><p>If you were using Tilezen vector tiles via the Mapzen Vector Tile service you’ll need to get an API key (more on that later, <a href="http://eepurl.com/diYJzD">learn more</a>) and update your endpoints to the new Nextzen locations:</p><pre>https://tile.nextzen.org/tilezen/vector/v1/{tilesize}/all/{z}/{x}/{y}.mvt?api_key=your-nextzen-api-key https://tile.nextzen.org/tilezen/vector/v1/512/all/{z}/{x}/{y}.mvt?api_key=your-nextzen-api-key https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.mvt?api_key=your-nextzen-api-key <a href="https://tile.nextzen.org/tilezen/vector/v1/all/%7Bz%7D/%7Bx%7D/%7By%7D.mvt?api_key=your-nextzen-api-key">https://tile.nextzen.org/tilezen/vector/v1/all/{z}/{x}/{y}.mvt?api_key=your-nextzen-api-key</a></pre><p>We’re also making an entire global vector tile build, based on December 2017 data, available as a <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">requester pays</a> S3 endpoint:</p><pre>vector-tiles-prod/20171221/{hashed-z-x-y-coordinate}.zip</pre><p>To access the Tilezen vector tiles you’ll need to run the same middleware called <a href="https://github.com/tilezen/tapalcatl-py/">Tapalcatl-py</a> that powers the tile.nextzen.org service. Tapalcatl reads the <a href="https://github.com/tilezen/tapalcatl-py/blob/778eea6538a4a1fabd3dad8e98aac0ef1ad065d8/server.py#L108-L131">hashed-x-y-z-coordinate</a> metatiles (which group many tiles together in one ZIP archive) and extracts and returns the requested tile in the correct format (MVT, GeoJSON, and TopoJSON) and tile size (256 and 512 pixel).</p><p>Tapalcatl is similar to <a href="https://github.com/mapbox/tilelive">TileLive</a> and other MBTiles based servers that vastly reduce financial costs associated with S3 gets and puts. This minimizes what would otherwise be billions of individual files, while introducing just a few milliseconds of latency at the edge. Amazon <a href="https://aws.amazon.com/s3/pricing/">S3 GET pricing</a> in us-east is currently $0.004 per 10,000 requests, and running Lambda and/or CloudFront on top of that adds only a little bit more.</p><p>Instructions for running Tapalcatl as an AWS Lambda function with Zappa are included in the project’s <a href="https://github.com/tilezen/tapalcatl-py/blob/master/README.md">readme</a> and enable a “serverless” (i.e.: low maintenance and generally cheap) way to serve vector tiles. Or <a href="http://eepurl.com/diYJzD">join our mailing list</a> if you’d like information about hosted instances or future data updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1T6IdhJIEE3lnred.jpg" /></figure><h3>Terrain Tiles</h3><p>If you were using Tilezen terrain tiles via the Mapzen Terrain Tiles service you’ll need to get an API key and update your endpoints to the new Nextzen locations:</p><pre>https://tile.nextzen.org/tilezen/terrain/v1/{tilesize}/terrarium/{z}/{x}/{y}.png?api_key=your-nextzen-api-key https://tile.nextzen.org/tilezen/terrain/v1/{tilesize}/normal/{z}/{x}/{y}.png?api_key=your-nextzen-api-key https://tile.nextzen.org/tilezen/terrain/v1/geotiff/{z}/{x}/{y}.tif?api_key=your-nextzen-api-key <a href="https://tile.nextzen.org/tilezen/terrain/v1/skadi/%7BN|S%7D%7By%7D/%7BN|S%7D%7By%7D%7BE|W%7D%7Bx%7D.hgt.gz?api_key=your-nextzen-api-key">https://tile.nextzen.org/tilezen/terrain/v1/skadi/{N|S}{y}/{N|S}{y}{E|W}{x}.hgt.gz?api_key=your-nextzen-api-key</a></pre><p>You can still access the Tilezen terrain tiles in 256 sized tiles via the existing Amazon public dataset S3 endpoints:</p><pre>elevation-tiles-prod/terrarium/{z}/{x}/{y}.png elevation-tiles-prod/normal/{z}/{x}/{y}.png elevation-tiles-prod/geotiff/{z}/{x}/{y}.tif elevation-tiles-prod/skadi/{N|S}{y}/{N|S}{y}{E|W}{x}.hgt.gz</pre><p>The 512 and buffered 260 and 516 sized terrain tiles are made possible by running <a href="https://github.com/tilezen/zaloa">Zaloa</a> as a Lambda function.</p><h3>All together now…</h3><p>The following versions of the Tangram basemap styles introduce support for Nextzen sources:</p><ul><li>Bubble Wrap: 9.0.0</li><li>Cinnabar: 9.0.0</li><li>Refill: 11.0.0</li><li>Tron: 6.0.0</li><li>Walkabout 7.0.0</li><li>SDK Deault 1.1.0</li></ul><h4>New Nextzen basemap endpoints:</h4><ul><li><a href="https://www.nextzen.org/carto/bubble-wrap-style/9/bubble-wrap-style.zip">https://www.nextzen.org/carto/bubble-wrap-style/9/bubble-wrap-style.zip</a></li><li><a href="https://www.nextzen.org/carto/cinnabar-style/9/cinnabar-style.zip">https://www.nextzen.org/carto/cinnabar-style/9/cinnabar-style.zip</a></li><li><a href="https://www.nextzen.org/carto/refill-style/11/refill-style.zip">https://www.nextzen.org/carto/refill-style/11/refill-style.zip</a></li><li><a href="https://www.nextzen.org/carto/tron-style/6/tron-style.zip">https://www.nextzen.org/carto/tron-style/6/tron-style.zip</a></li><li><a href="https://www.nextzen.org/carto/walkabout-style/7/walkabout-style.zip">https://www.nextzen.org/carto/walkabout-style/7/walkabout-style.zip</a></li><li><a href="https://www.nextzen.org/carto/sdk-default-style/1.1/sdk-default-style.zip">https://www.nextzen.org/carto/sdk-default-style/1.1/sdk-default-style.zip</a></li></ul><h3>Icon Library: sprites on their own</h3><p>The full Icon Library is available for use in your favorite mapping or graphics software as individual sprite images, independent of the basemaps. Currently only png format at 2x resolution is supported.</p><ul><li><a href="https://www.nextzen.org/carto/bubble-wrap-style/9/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/bubble-wrap-style/9/icons/{resolution}/{sprite}.{format}</a></li><li><a href="https://www.nextzen.org/carto/cinnabar-style/9/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/cinnabar-style/9/icons/{resolution}/{sprite}.{format}</a></li><li><a href="https://www.nextzen.org/carto/refill-style/11/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/refill-style/11/icons/{resolution}/{sprite}.{format}</a></li><li><a href="https://www.nextzen.org/carto/tron-style/6/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/tron-style/6/icons/{resolution}/{sprite}.{format}</a></li><li><a href="https://www.nextzen.org/carto/walkabout-style/7/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/walkabout-style/7/icons/{resolution}/{sprite}.{format}</a></li><li><a href="https://www.nextzen.org/carto/sdk-default-style/1.1/icons/%7Bresolution%7D/%7Bsprite%7D.%7Bformat%7D">https://www.nextzen.org/carto/sdk-default-style/1.1/icons/{resolution}/{sprite}.{format}</a></li></ul><p><strong>For example:</strong></p><p>Load the adit sprite in the <strong>Bubble Wrap</strong> style at 2x in png format:</p><pre><a href="https://www.nextzen.org/carto/bubble-wrap-style/9/icons/2x/adit.png">https://www.nextzen.org/carto/bubble-wrap-style/9/icons/2x/adit.png</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/38/0*19URHixHqDnY8SSD.png" /></figure><h3>Thank you</h3><p>It’s been a pleasure serving you the last few years! If you’d like to continue or otherwise sponsor the Tilezen open source project let us know :)</p><p>See you on the other side!</p><h3>PS: Show me the icons</h3><p>This release of the basemaps and stand-alone icon libraries triples the number of map icons, with 100% interoperability with the Maki icon set, the default openstreetmap.org cartography, the HOT icon set, and adds icons for all Tilezen POI kinds. (When there is a name discrepancy between Tilezen and Maki, for instance, we re-export the same artwork per name variant.) We also added nearly 200 shields, each with 5 character widths to support localized road shields in more than 40 countries.</p><p>The artwork is available in 3 different styles: <strong>Bubble Wrap</strong> full color, <strong>Walkabout</strong> silhouettes, and <strong>Refill</strong>’s greyscale. We were lucky to contract with the extraordinary Denis Sazhin of <a href="http://iconka.com/">iconka</a> to extend Geraldine’s original set of icons. The raw Illustrator files is also <a href="https://github.com/tangrams/icons">available</a> under an open license, please use the artwork far and wide :)</p><ul><li><strong>674 map and ux icons</strong></li><li><strong>958 road shields</strong></li><li><strong>290 United States</strong> road shields for all 50 states, US Routes, US Interstates, county routes, US Forest Service highways and roads, and more.</li><li><strong>668 international</strong> road shields, including in: Argentina, Australia, Austria, Bangladesh, Belgium, Brazil, Canada (including all provinces), Chile, China, Denmark, Finland, France, Germany, Greece, India, Indonesia, Iraq, Ireland, Italy, Japan, Luxembourg, Malaysia, Mexico, Netherlands, New Zealand, Norway, Peru, Poland, Portugal, Romania, Russia, Saudi Arabia, Singapore, South Africa, South Korea, Spain, Sweden, Switzerland, Thailand, Turkey, Ukraine, United Kingdom, and Vietnam.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/0*udMeShDNiy2qOd3J.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/0*WrLzbWJHiT7qBEnr.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/0*GgE9Ta_3YdjSVdpi.png" /></figure><p><em>Originally published at </em><a href="https://mapzen.com/blog/long-term-support-mapzen-maps/"><em>mapzen.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a45e108943b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/long-term-support-for-mapzen-maps-vector-terrain-tiles-a45e108943b4">Long-term support for Mapzen maps, vector &amp; terrain tiles</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post Mortem III]]></title>
            <link>https://medium.com/postzen/post-mortem-iii-85e9288fdb3a?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/85e9288fdb3a</guid>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 02:36:49 GMT</pubDate>
            <atom:updated>2018-02-09T02:36:49.159Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by<a href="https://twitter.com/randyme"> Randy Meech</a> on 29 January 2018.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BB9IBMIWKAhYXmc0.jpg" /></figure><p><em>Early springtime lilacs. Shelter Island, NY</em></p><p>Hi there -</p><p>It’s been a while since the <a href="https://mapzen.com/blog/east-coker/">first</a> <a href="https://mapzen.com/blog/magna-carto/">two</a> posts in our Mapzen Post Mortem series, but we’ve been busy. You’ve heard that <a href="https://mapzen.com/blog/shutdown/">Mapzen is shutting down</a>, right? If you still depend on the services, please check our <a href="https://mapzen.com/blog/migration/">migration guide</a> soon because February 1 is right around the corner… We’ll keep adding relevant substitutes to the guide over the next week so do take a look if you need to move.</p><p>Most at Mapzen are gone, but a few are here for the next week. One week! Not much time left. On the subject of time, we all have so little of it to begin with, so if you’re fortunate enough to have the choice, make sure you’re working on things that matter to you and the people you care about. If you’re reading this post, you probably have more choice than you realize: more choice and less time. Mapzen was lucky to be able to work on things that mattered to us for the last four-and-a-half years, and we wish the same for you.</p><p>On that subject, I love this Tweet and send it warmly to the Mapzen team:</p><blockquote><em>listen. if you have the chance to create something with your friends, do it. do not wait. the chance may not come again. you will not find these people, as they are, again. as much as it may feel like it, opportunity doesnt last forever. it barely even lasts to begin with. go!</em></blockquote><blockquote><em>— jomny sun (@jonnysun) </em><a href="https://twitter.com/jonnysun/status/942196176954281986?ref_src=twsrc%5Etfw"><em>December 17, 2017</em></a></blockquote><p>It was an honor and pleasure to build all this with you!</p><h3>Post Blame, Less Mortem</h3><p>As Mapzen shuts down, I’ve been thinking about legacy, continuity, and like everyone here, I’ve been thinking about what’s next. We’re in an interesting position where much of what we built will live on, and I wanted to talk more about that.</p><p>I also promised a reply to Kellan:</p><blockquote><em>I’ve always been inspired by Mapzen’s commitment to build sustained long term improvements to the ecosystem — I hope they write more about those choices and how their work will live on because of them. </em><a href="https://t.co/4KbRYS2tM6"><em>https://t.co/4KbRYS2tM6</em></a></blockquote><blockquote><em>— kellan (@kellan) </em><a href="https://twitter.com/kellan/status/948309514134093824?ref_src=twsrc%5Etfw"><em>January 2, 2018</em></a></blockquote><p>Kellan is the former CTO of Etsy, which popularized the <a href="https://codeascraft.com/2012/05/22/blameless-postmortems/">blameless post-mortem</a>, a way to understand and learn from failure in a constructive way. I find it amusing that our post mortem series includes both <a href="https://mapzen.com/blog/east-coker/">poems about death</a> and also quotes from him, and I hope he doesn’t mind being dragged into this. So here goes…</p><p>Mapzen had a mandate to work only on open software and data, a very rare opportunity. Usually, companies that pursue open software or data draw a strategic line about what will be open and what will be proprietary. This makes a lot of sense; it was the case at my previous companies and will certainly be the case at my next company. But some kind of open strategy remains critical in mapping, a field dominated by incumbents who have invested billions of dollars and who use their advantages to restrict products across many industries. No one can compete in mapping at this point without embracing some collaborative efforts. At Mapzen, we went to the extreme and drew the line at near-zero proprietary elements, basically just this website and some operational code that didn’t make sense to publish.</p><p>Would I undertake this strategy again? For a large company trying to find flexibility in a restrictive area like mapping, I think the Mapzen strategy makes a lot of sense. If two or more large companies put significant, long-term resources behind what we were doing, the difficult problem of mapping would quickly be solved and companies could move the competition to a more interesting area: their products. For companies focused specifically on mapping and location services, the Mapzen strategy makes less sense. They need to find the right strategic line and hope that their proprietary elements remain stable.</p><p>In the end, I wouldn’t bet on any proprietary elements in mapping remaining stable.</p><h3>How to Survive Death</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HCVx_QaFs8e2yT40.jpg" /></figure><p><em>Forsythia in bloom with later-spring lilacs behind. Shelter Island, NY</em></p><p>Early on at Mapzen, we were planning some new project. I asked a question that kind of scared me: “How would this survive the death of the company?” We weren’t close to death, and it scared me because who wants to hear that from the CEO? But it captured what we were doing in this special point in time and inspired our work. We had the chance to build everything to survive, and we did it. And we planned it all along the way to survive past our own existence.</p><p>Because we built everything like this, others joined in. They trusted that we were working on permanent infrastructure not tied to a specific company. Our <a href="https://github.com/whosonfirst-data/whosonfirst-data">gazetteer</a>, <a href="https://github.com/valhalla">routing engine</a>, <a href="https://github.com/pelias">geocoder</a>, <a href="https://github.com/tilezen">tile server</a>, and <a href="https://github.com/tangrams">rendering engines</a> were all set up as independent Github orgs with liberal licenses to ensure their durability. Others contribute to them, and their reach is wide. You’re using Mapzen’s legacy when you drive certain cars, play popular AR games, or interact with location data all over the Internet. Neither the shutdown of our hosted services nor the dissolution of the team can change this.</p><p>We were able to do this because we were pursuing the strategy outlined above: trying to provide flexibility in a restrictive area. Having others join as equals wasn’t a threat, it was a success to be celebrated. Someone once asked me, “What happens if the big mapping providers decide to open their data as well?” I replied, “We can all just go home!” Of course there would still be work to do, but Mapzen would have considered this a big success for our mission.</p><p>On January 2nd we announced our shutdown. December 2017 was one of the hardest months of my life, letting go one of the best teams in the industry and many good friends. As I came into the office on January 2nd and made the announcement at noon eastern time, I braced myself for a wave of internet snark and cynicism. Would people make fun of Mapzen for our tone and our all-open positioning? No. Instead, we all marveled at the overwhelming support and sadness from the community that loved our work and appreciated what we did. We spent most of the day <a href="https://news.ycombinator.com/item?id=16053348">at the top of Hacker News</a>:</p><blockquote><em>not quite the way I wanted </em><a href="https://twitter.com/mapzen?ref_src=twsrc%5Etfw"><em>@Mapzen</em></a><em> to be number one on Hacker News </em><a href="https://t.co/nq3ArEsBLO"><em>pic.twitter.com/nq3ArEsBLO</em></a></blockquote><blockquote><em>— Burrito Justice (@burritojustice) </em><a href="https://twitter.com/burritojustice/status/948259138554830848?ref_src=twsrc%5Etfw"><em>January 2, 2018</em></a></blockquote><p>No snark was detected. Our inboxes filled up. Twitter went wild. Corporate development teams from every company you might imagine — and many you might not — reached out to acquire us. Recruiters reached out to many on the team. The idea of hiring entire teams, whether they focused on search, navigation, or map rendering, became a hot topic. People learned that the tools and services we worked on could continue intact. January was a great month and gives me a lot of hope.</p><p>We knew that building technology to last would be valuable for the community, but over the last month we realized it’s also valuable to individuals on the team. It turns out that working entirely in public on big problems is good for your career. The Mapzen team has a high profile and we’re humbled by the hiring demands, and want to remind companies that a lot of our high profile is due to non-engineering work. If you’re at a company that needs to improve its own profile, consider looking at our marketing, community, support, and business teams.</p><h3>Case Study: Mobility</h3><p>Let’s look specifically at one of our products and how it will survive our death.</p><p>Years ago I arrived at MapQuest through a startup acquisition, and I began thinking about open strategies for larger companies. The problem was that data providers were too restrictive and expensive. Data providers who were formerly partners suddenly seemed more like competitors, and it was becoming harder to build new products without control over the entire map stack including data. I had worked with OpenStreetMap data previously, and wondered if that might be a solution: share the data with others and compete on products instead. MapQuest became the earliest corporate backer of OpenStreetMap, and did some work on <a href="http://mapnik.org/">Mapnik</a> and <a href="https://github.com/openstreetmap/Nominatim">Nominatim</a> which would be used well into the future. I started to think about the elements that would later become Mapzen.</p><p>When I left MapQuest, I always regretted not giving more access to the excellent navigation engine the MapQuest team built. So when we had the chance at Mapzen, we hired that team in its entirety and built the Valhalla routing engine. I’m very proud of this work: it’s the first global, open, multi-modal (meaning transit!) navigation engine. It’s built for low-memory usage to make it possible to use in embedded systems, like a car. Valhalla makes accessible to all developers what was previously reserved for Google and Apple. Their work is freely available <a href="https://github.com/valhalla/valhalla/blob/master/COPYING">under the liberal MIT license</a>.</p><p>I’m very happy that <a href="https://blog.mapbox.com/mapbox-%EF%B8%8F-valhalla-1fdda95ac4f">Mapbox hired this team</a> and will continue the work around Valhalla in conjunction with their other navigation services. I’m confident that they will move this work forward, and pursue a sensible strategic line around open and proprietary. I look forward to see what they do here!</p><p>But the key to Mapzen’s legacy is that you are free to <a href="https://github.com/valhalla/packaging">run Valhalla yourself</a>. As we helped a well-known customer move off the paid services, we showed them how to do just this. They said, “I thought this was going to be a disaster, but actually it’s kind of awesome.” I agree!</p><p>On the subject of awesome, <a href="https://twitter.com/drewdaraabrams">Drew Dara-Abrams</a> and <a href="https://twitter.com/woolie">Ian Rees</a>, who worked on mobility and transit at Mapzen, have <a href="https://www.interline.io/">announced a company called Interline Technologies</a>. If you need help running Valhalla yourself, or want to work more closely with transit data, they’re available.</p><p>Brian Eno <a href="http://music.hyperreal.org/artists/brian_eno/interviews/musn82.htm">once said about the Velvet Underground</a> that their first album sold few copies, but that everyone who bought one formed a band. I’d like to see something similar happen with Mapzen’s work — I want to see a lot of new companies pop up here with what we built. I’d like to think back on Mapzen as the Velvet Underground of mapping.</p><h3>Other Case Studies</h3><p>If you want to read more on the same topic, check out <a href="https://www.whosonfirst.org/blog/2018/01/02/chapter-two/">Aaron’s post about Who’s On First</a>. Also we’ll announce some exciting developments for our search and vector tiles services before we close later this week, so watch this space. Spoiler alert: all of our work will continue to be supported and accessible to all.</p><h3>What’s Next for Me</h3><blockquote><em>Only three or four more gigantic problems to solve and this should all work pretty well</em></blockquote><blockquote><em>— Randy Meech (@randyme) </em><a href="https://twitter.com/randyme/status/704648762866712576?ref_src=twsrc%5Etfw"><em>March 1, 2016</em></a></blockquote><p>What’s next! Follow me above to see what’s next very soon (it will be awesome).</p><p>I’ve been working in open mapping for about ten years now. While Mapzen made a lot of progress, a few of the problems we wanted to solve still exist. To my mind, high quality points of interest (restaurants, bars, parks, etc) are still too inaccessible, and this area has not improved as fast as other areas of mapping. I want to focus more directly on this as Mapzen had a very wide focus. I’m also interested in exploring some of the decentralizing technologies that are emerging now; my sense is that they’re a good way to express the work we’ve already been doing with open software and data.</p><p>Let’s keep in touch! Thanks for working with us and thanks for caring!</p><p>Much love,<br> Randy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OKKAYrrapZHlDIr2.jpg" /></figure><p><em>Lilacs in full bloom. Shelter Island, NY</em></p><p><em>Originally published at </em><a href="https://mapzen.com/blog/a-letter-just-to-you/"><em>mapzen.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85e9288fdb3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/post-mortem-iii-85e9288fdb3a">Post Mortem III</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post Mortem II]]></title>
            <link>https://medium.com/postzen/post-mortem-ii-814093a2d4dc?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/814093a2d4dc</guid>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 02:35:07 GMT</pubDate>
            <atom:updated>2018-02-09T02:35:07.870Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by<a href="https://twitter.com/randyme"> Randy Meech</a> on 09 January 2018.</p><p><em>This is a republication of </em><a href="https://mapzen.com/blog/our-magna-carto/"><em>Our Magna Carto</em></a><em> from July 1, 2015, and the second installment of our post mortem series. Read </em><a href="https://mapzen.com/blog/our-magna-carto/"><em>the first installment here</em></a><em>.</em></p><p>One of my favorite pages on Wikipedia lists the <a href="https://en.wikipedia.org/wiki/List_of_oldest_companies">oldest companies in the world</a>. While mapping is indeed an ancient profession, you won’t find any mapping companies there: the oldest companies make alcoholic beverages, knives and swords, or provide restaurant and hotel services. The oldest I’ve done business with is probably Stella Artois (1366).</p><p>The oldest company in the world was until recently <a href="https://en.wikipedia.org/wiki/Kong%C5%8D_Gumi">Kongō Gumi</a>, a Japanese construction company founded in 578. Yet even good old Kongō Gumi ran into difficulties in 2006 and was absorbed into a larger construction company, proving that nothing in this world is permanent. Even <a href="https://en.wikipedia.org/wiki/Shitenn%C5%8D-ji">Shitennō-ji Buddhist temple</a>, which it originally built in the 6th century, has been completely rebuilt a number of times over the centuries:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WG_oJWutr8obwqIL.jpg" /></figure><p>Shitennō-ji: younger than it looks. image credit 663highland, CC BY 2.5</p><p>I started in tech in 2000, and moved into the mapping industry in 2008. Not a long time ago by any means, although feeling <em>like I’ve seen things before</em> happens more frequently to me at this phase of my career. And what I’ve seen over the years is change and impermanence. Giants have tripped, hot startups have been acquired and fallen quite literally off the map. What has remained and been carried forward?</p><h3>Seeking permanence</h3><p>One of the core tenets of Mapzen is that all our software and data must be open. This has been our guiding principle since the beginning, and as sure as all things must end, we will follow this through to our end (hopefully a hundred or more years from now, like Kongō Gumi). By building everything in the open we can build for real permanence, not just the short-lived permanence of a hot brand in this turbulent space.</p><p>Our motto is “Start where you are.” This means many different things, but I often think about it when we’re looking at an area where open data is clearly inferior to proprietary, such as geocoding. A conventional company would abandon its open philosophy and strike a deal with a proprietary geocoding service. But <a href="https://investor.google.com/corporate/2004/ipo-founders-letter.html">to quote Google</a>, <strong>we are not a conventional company:</strong> we will start where we are and insist on open data. This is part of our work with Code for America and OpenAddresses: <a href="http://www.codeforamerica.org/blog/2015/03/03/mapzen-and-our-work-on-geographic-open-data/">we would rather spend $500,000 improving open address data</a> than strike a quick deal to provide a better geocoder. We would rather do things that benefit all in the open.</p><p>Why? Because striking a quick deal robs from our collective future. It props up old, struggling business models, and prevents us and our developers from using and improving data as a community. It’s not that we don’t have the money to work with traditional map data providers. We won’t work with them because it would divert focus from the real work of improving open data, which will help everyone. We will never take harmful shortcuts, even if they make short-term business sense.</p><p>At the US State of the Map conference, I spoke on <a href="https://www.youtube.com/watch?v=MgEh9d9Rj74">businesses and OpenStreetMap</a>. At the end of the talk I invited the whole community — individuals, businesses, governments — to work together to get all of this data into the open. Doing this will allow us to build something that will outlast many things, and will certainly outlast the older proprietary models that we see collapsing around us now. Then we can build much more interesting things on top.</p><p>As companies and individuals, let’s all work on things that will be around for the next hundred years.</p><p><em>Originally published at </em><a href="https://mapzen.com/blog/magna-carto/"><em>mapzen.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=814093a2d4dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/post-mortem-ii-814093a2d4dc">Post Mortem II</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mapzen Post Mortem I]]></title>
            <link>https://medium.com/postzen/mapzen-post-mortem-i-3a0d3e1f9a62?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a0d3e1f9a62</guid>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 02:33:14 GMT</pubDate>
            <atom:updated>2018-02-09T02:33:14.255Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/">Mapzen</a> on 08 January 2018.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XoiHdj3VLsZQp5Lb.jpg" /></figure><p><em>The Seventh Seal, Danse Macabre</em></p><p>O dark dark dark. They all go into the dark, The vacant interstellar spaces, the vacant into the vacant, The captains, merchant bankers, eminent men of letters, The generous patrons of art, the statesmen and the rulers, Distinguished civil servants, chairmen of many committees, Industrial lords and petty contractors, all go into the dark, And dark the Sun and Moon, and the Almanach de Gotha And the Stock Exchange Gazette, the Directory of Directors, And cold the sense and lost the motive of action. And we all go with them, into the silent funeral,</p><p>Nobody’s funeral, for there is no one to bury.</p><p>I said to my soul, be still, and let the dark come upon you Which shall be the darkness of God. As, in a theatre, The lights are extinguished, for the scene to be changed With a hollow rumble of wings, with a movement of darkness on darkness, And we know that the hills and the trees, the distant panorama And the bold imposing facade are all being rolled away — Or as, when an underground train, in the tube, stops too long between stations And the conversation rises and slowly fades into silence And you see behind every face the mental emptiness deepen Leaving only the growing terror of nothing to think about;</p><p>Or when, under ether, the mind is conscious but conscious of nothing —</p><p>I said to my soul, be still, and wait without hope For hope would be hope for the wrong thing; wait without love For love would be love of the wrong thing; there is yet faith But the faith and the love and the hope are all in the waiting. Wait without thought, for you are not ready for thought:</p><p>So the darkness shall be the light, and the stillness the dancing.</p><p>Whisper of running streams, and winter lightning. The wild thyme unseen and the wild strawberry, The laughter in the garden, echoed ecstasy Not lost, but requiring, pointing to the agony</p><p>Of death and birth.</p><p>You say I am repeating Something I have said before. I shall say it again, Shall I say it again? In order to arrive there, To arrive where you are, to get from where you are not, You must go by a way wherein there is no ecstasy. In order to arrive at what you do not know You must go by a way which is the way of ignorance. In order to possess what you do not possess You must go by the way of dispossession. In order to arrive at what you are not You must go through the way in which you are not. And what you do not know is the only thing you know And what you own is what you do not own</p><p>And where you are is where you are not.</p><p><em>-T.S. Eliot from “The Four Quartets” — East Coker III</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a0d3e1f9a62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/mapzen-post-mortem-i-3a0d3e1f9a62">Mapzen Post Mortem I</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mapzen Alternatives]]></title>
            <link>https://medium.com/postzen/mapzen-alternatives-aa6d857e3532?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa6d857e3532</guid>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Tue, 02 Jan 2018 05:00:00 GMT</pubDate>
            <atom:updated>2018-01-02T18:54:18.387Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/">Mapzen</a> on 02 January 2018.</p><p>Mapzen will cease operations at the end of January 2018, and its hosted APIs and all related support and services will turn off on February 1, 2018.</p><p>Your two options are to switch to another hosted API that offers similar functionality, or to run your own servers with the open-source projects that powered Mapzen services. We list several options below to make this as easy as possible.</p><h4>Alternate services and hosted APIs</h4><h4>Mapzen Vector Tiles and Cartography</h4><p>For basemaps and vector tiles, you may want to consider:</p><ul><li><a href="https://www.mapbox.com/maps/">Mapbox</a></li><li><a href="https://openmaptiles.org/">OpenMapTiles</a></li><li><a href="https://thunderforest.com/docs/vector-maps-api/">Thunderforest</a></li></ul><p>Terrain Tiles will continue to be available as an <a href="https://aws.amazon.com/public-datasets/terrain/">Amazon Public Dataset</a>.</p><p>Mapzen Vector Tiles and Cartography are based on the <a href="https://github.com/tangrams">Tangram</a> and <a href="https://github.com/tilezen/">Tilezen</a> open-source projects. Read below for information on how to run these services locally.</p><p>Tangram scene files saved in a <a href="https://github.com/tangrams/tangram-play">Tangram Play</a> account can be saved to a <a href="https://gist.github.com/">GitHub Gist</a> or downloaded locally, while Mapzen services are still running.</p><h4>Mapzen Turn-by-Turn routing</h4><p>For routing and navigation, you may want to consider these services:</p><ul><li><a href="https://www.graphhopper.com/">GraphHopper</a></li><li><a href="https://www.mapbox.com/navigation/">Mapbox Directions API</a></li><li><a href="http://project-osrm.org/">Project OSRM</a></li></ul><p>Mapzen’s routing and navigation projects were backed by <a href="https://github.com/valhalla">Valhalla</a>, an open-source project. Read below for how to run Valhalla locally.</p><h4>Mapzen Search</h4><p>For search and geocoding, you may want to consider these services:</p><ul><li><a href="http://nominatim.openstreetmap.org/">Nominatim</a></li><li><a href="https://geocoder.opencagedata.com/">OpenCage Data</a></li><li><a href="https://osmnames.org/">OSMNames</a></li><li><a href="https://www.mapbox.com/geocoding/">Mapbox Search API</a></li></ul><p>Mapzen Search was backed by <a href="https://github.com/pelias/">Pelias</a>, an open source project. Read below for how to run this service locally.</p><h4>Mobile</h4><p>For Android and iOS, you may want to consider these third party SDKs:</p><ul><li><a href="https://www.mapbox.com/mobile/">Mapbox</a></li></ul><p>In the event you decide to host a version of Valhalla and Pelias locally, you can continue to use our mobile SDKs we’ve built to interact with that service.</p><p>Mapzen iOS and Android SDKs, along with On The Road SDKs for Valhalla will be available at <a href="https://github.com/nextzen">https://github.com/nextzen</a>.</p><p>Our LOST project for Android will be available at <a href="https://github.com/lostzen/">https://github.com/lostzen/</a>.</p><p>Pelias and tangram-es SDKs will continue to be available from their respective repositories.</p><h4>Transitland</h4><p>Transitland will continue as an open-data project at <a href="https://transit.land/">https://transit.land</a></p><p>Transitland’s server and data operations through 2018 will be supported by Amazon Web Services, thanks to an award from the <a href="https://aws.amazon.com/earth/research-credits/">Earth on AWS Cloud Credits for Research Program</a>.</p><p>Continue to follow <a href="https://twitter.com/transitland">@transitland</a> on Twitter for updates.</p><h4>Who’s On First / Mapzen Places</h4><p>Data (individual records) and source code for Who’s On First will continue to be hosted at <a href="https://github.com/whosonfirst">https://github.com/whosonfirst</a>, but whosonfirst.mapzen.com and the Mapzen Places API will go offline.</p><p>Who’s On First will continue (in a scaled back version, for now) at <a href="https://whosonfirst.org/">https://whosonfirst.org</a>.</p><ul><li>Data (individual records) and source code are at <a href="https://github.com/whosonfirst">https://github.com/whosonfirst</a>.</li><li>All of the data and code and blog posts have also been cloned to the Internet Archive.</li><li>The Spelunker will go offline, in the short term.</li><li>Batch processing and cascading edits will stop in the short term.</li><li>A limited version of the API that returns individual records will be at <a href="https://whosonfirst.org/">https://whosonfirst.org</a>, with additional functionality growing over time (spatial queries, point-in-polygon, editorial tool, cascading updates).</li></ul><p>Follow along at <a href="https://www.whosonfirst.org/">https://www.whosonfirst.org</a> for updates.</p><h4>Metro Extracts</h4><p>Metro Extracts will no longer be updated, and the custom extract service will no longer be available. We are working on making a copy of the existing extracts available.</p><p>The Humanitarian Open Streetmap Team has created the <a href="https://export.hotosm.org/">HOT Export Tool</a> that creates customized extracts of up-to-date OSM data in various file formats, including PBFs. Please consider <a href="https://www.hotosm.org/donate">donating to HOT</a>, whether or not you use this service.</p><p>For non planet-sized PBF extracts, you may want to consider <a href="https://www.geofabrik.de/">Geofabrik</a> or the <a href="http://wiki.openstreetmap.org/wiki/Overpass_API">Overpass API</a>.</p><h4>Documentation and blog posts</h4><p>Blog posts will be archived on <a href="https://medium.com/postzen">https://medium.com/postzen</a>.</p><p>Documentation will be available in each open-source GitHub repo:</p><p>Documentation section Source location <a href="http://www.mapzen.com/documentation/overview">Overview</a> <a href="https://github.com/mapzen/mapzen-docs-generator/tree/master/docs">https://github.com/mapzen/mapzen-docs-generator/tree/master/docs</a> <a href="https://mapzen.com/documentation/mapzen-js/">mapzen.js</a> <a href="https://github.com/mapzen/mapzen.js/tree/master/docs">https://github.com/mapzen/mapzen.js/tree/master/docs</a> <a href="https://mapzen.com/documentation/tangram/">Tangram</a> <a href="https://github.com/tangrams/tangram-docs">https://github.com/tangrams/tangram-docs</a> <a href="https://mapzen.com/documentation/vector-tiles/">Vector tiles</a> <a href="https://github.com/tilezen/vector-datasource/tree/master/docs">https://github.com/tilezen/vector-datasource/tree/master/docs</a> <a href="https://mapzen.com/documentation/search/">Search</a> <a href="https://github.com/pelias/pelias-doc">https://github.com/pelias/pelias-doc</a> <a href="https://mapzen.com/documentation/mobility/">Mobility</a> <a href="https://github.com/valhalla/valhalla-docs">https://github.com/valhalla/valhalla-docs</a> <a href="https://mapzen.com/documentation/metro-extracts/">Metro Extracts</a> <a href="https://github.com/mapzen/metro-extracts/tree/master/docs">https://github.com/mapzen/metro-extracts/tree/master/docs</a> <a href="https://mapzen.com/documentation/terrain-tiles/">Terrain tiles</a> <a href="https://github.com/tilezen/joerd">https://github.com/tilezen/joerd</a> <a href="https://mapzen.com/documentation/elevation/">Elevation</a> <a href="https://github.com/valhalla/valhalla-docs">https://github.com/valhalla/valhalla-docs</a> <a href="https://mapzen.com/documentation/android/">Android SDK</a> <a href="https://github.com/mapzen/android/tree/master/docs">https://github.com/mapzen/android/tree/master/docs</a> <a href="https://mapzen.com/documentation/ios/">iOS SDK</a> <a href="https://github.com/mapzen/ios/blob/master/docs">https://github.com/mapzen/ios/blob/master/docs</a> <a href="https://mapzen.com/documentation/libpostal/">Address parsing/libpostal</a> <a href="https://github.com/whosonfirst/go-whosonfirst-libpostal/blob/master/docs">https://github.com/whosonfirst/go-whosonfirst-libpostal/blob/master/docs</a> <a href="https://mapzen.com/documentation/wof/">Who’s On First</a> <a href="https://github.com/whosonfirst/whosonfirst-www-api/tree/master/docs">https://github.com/whosonfirst/whosonfirst-www-api/tree/master/docs</a> <a href="https://mapzen.com/documentation/cartography/">Cartography</a> <a href="https://github.com/tangrams/cartography-docs/">https://github.com/tangrams/cartography-docs/</a></p><h4>Run open-source versions of Mapzen services</h4><p>Mapzen services are backed by open-source software projects, and use open data. Even with limited technical knowledge, you can run these yourself for metro-sized areas using a local web server or <a href="https://docs.docker.com/">Docker containers</a>.</p><h4>Tangram and Tilezen (Cartography and Vector Tiles)</h4><p>Documentation for Tangram is available at <a href="https://github.com/tangrams/tangram-docs">https://github.com/tangrams/tangram-docs</a>.</p><p><a href="https://github.com/tangrams/tangram">tangram.js</a>, <a href="https://github.com/tangrams/tangram-es">tangram.es</a>, Mapzen.js, <a href="https://github.com/tangrams/tangram-play">Tangram Play</a> are all open-source projects that can be run locally.</p><h4>Basemap styles</h4><p><a href="https://github.com/tangrams/bubble-wrap">Refill</a>, <a href="https://github.com/tangrams/walkabout-style">Walkabout</a>, <a href="https://github.com/tangrams/bubble-wrap">Bubble-wrap</a>, <a href="https://github.com/tangrams/tron-style">Tron</a> and <a href="https://github.com/tangrams/cinnabar-style">Cinnabar</a> basemap styles will continue to be available in their repositories in <a href="https://github.com/tangrams">https://github.com/tangrams</a> and served via tangrams.github.io.</p><h4>Map data</h4><p>While Tangram can import non-tiled GeoJSON and TopoJSON, vector tiles are what makes it interesting.</p><p>The Docker version of Tilezen can dynamically serve tiles from a Metro Extract or reasonably-sized PBF.</p><ul><li>Tilezen in Docker <a href="https://github.com/tilezen/tileserver/blob/master/DOCKER.md">https://github.com/tilezen/tileserver/blob/master/DOCKER.md</a></li></ul><p>To run a map for a city or a region with no network dependencies:</p><ul><li>Save mapzen.js / tangram.js, index.html and scene.yaml file in a directory</li><li>Extract a pyramid of tiles for area of interest using tilepack and save them in that same directory. (Note you don’t need to go beyond z15 tiles as they contain all the data in higher (&gt;= 16) tiles, and Tangram overzooms.)</li></ul><p>To download tiles from our hosted services before shutdown:</p><p>https://github.com/tilezen/tilepacks MAPZEN_API_KEY=mapzen-xxxxxx tilepack -122.51489 37.70808 -122.35698 37.83239 10 15 sf_mvt_10_15 --tile-size 512</p><p>Size and download speeds makes this viable for a city and perhaps a region. The example above generates a 30MB pyramid of MVT tiles, or 138MB of topojson, for San Francisco. For GeoJSON, SF is 67MB at z14, and 130MB at z15.</p><ul><li>Serve tiles via a web server (localhost or hosted).</li><li>Create a scene file for Tangram. Note you will need to override the mapzen source in the scene file if you are importing a basemap.</li></ul><pre>sources:<br>    mapzen:<br>        type: MVT<br>        url:  localhost:8000/sf_mvt_10_15/all/{z}/{x}/{y}.mvt<br>        tile_size: 512<br>        max_zoom: 15</pre><h4>Valhalla (routing)</h4><p>Documentation for Valhalla is available at <a href="https://github.com/valhalla/valhalla-docs">https://github.com/valhalla/valhalla-docs</a>.</p><p>Instructions on running Valhalla in Docker using data from a Metro Extract or PBF are at <a href="https://github.com/valhalla/docker">https://github.com/valhalla/docker</a>.</p><h4>Pelias (search)</h4><p>Documentation for Pelias is available at <a href="http://pelias.io/">http://pelias.io</a> and <a href="https://github.com/pelias/pelias-doc">https://github.com/pelias/pelias-doc</a>.</p><p>Instructions on how to run <a href="https://github.com/pelias/dockerfiles">Pelias in Docker</a> with data from a Metro Extract or PBF and OpenAddresses data are at <a href="https://github.com/pelias/dockerfiles/blob/master/how_to_guide.pdf">https://github.com/pelias/dockerfiles/blob/master/how_to_guide.pdf</a>.</p><p>General instructions on running and installing Pelias and Elasticsearch: <a href="http://pelias.io/install.html">http://pelias.io/install.html</a></p><h4>Mobile</h4><p>Android and iOS SDK source code and LOST will available at <a href="https://github.com/lostzen">https://github.com/lostzen</a></p><p><em>Preview image: World Emigration Map by Charles Minard from the David Rumsey Map Collection</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa6d857e3532" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/mapzen-alternatives-aa6d857e3532">Mapzen Alternatives</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mapzen Shutdown :(]]></title>
            <link>https://medium.com/postzen/mapzen-shutdown-16e9d7dd553c?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e9d7dd553c</guid>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Tue, 02 Jan 2018 05:00:00 GMT</pubDate>
            <atom:updated>2018-01-02T18:58:21.831Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/">Mapzen</a> on 02 January 2018.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmyYGwGGdOalEQ-WS78tIw.png" /></figure><p>Unfortunately, we have some sad news. Mapzen will cease operations at the end of January 2018. Our hosted APIs and all related support and services will turn off on February 1, 2018. You will not be charged for API usage in December/January. We know this is an inconvenience and have provided a <a href="https://mapzen.com/blog/migration">migration guide to similar services</a> for our developer community. Our goal is to help as much as possible to ensure continuity in the services that you have built with us.</p><p>Fortunately, the core products of Mapzen are built entirely on open software and data. As a result, there are options to run Mapzen services yourself or to switch to other service providers.</p><p>Thanks for being with us over the past four years. We’re grateful that the open work we’ve done can continue outside of Mapzen and while we know this is a sad day, we’re optimistic about what’s next.</p><p><em>Preview image: Air Afrique Map of the World by M. Bourie from the David Rumsey Map Collection</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e9d7dd553c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/mapzen-shutdown-16e9d7dd553c">Mapzen Shutdown :(</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WOF in a Box (part 2)]]></title>
            <link>https://medium.com/postzen/wof-in-a-box-part-2-c53adcb67b82?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c53adcb67b82</guid>
            <category><![CDATA[whosonfirst]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 05:00:00 GMT</pubDate>
            <atom:updated>2018-01-02T15:06:25.399Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/dphiffer">Dan Phiffer</a> on 29 December 2017.</p><p><em>This is the second of the two part guide to running </em><a href="https://whosonfirst.mapzen.com/"><em>Who’s On First</em></a><em> tools on your own hardware. You may want to read </em><a href="https://mapzen.com/blog/wof-in-a-box/"><em>part 1</em></a><em> first.</em></p><p>Before we jump into installing the Who’s On First <a href="https://github.com/whosonfirst/whosonfirst-www-api">REST API</a> and <a href="https://github.com/whosonfirst/whosonfirst-www-boundaryissues">editor</a>, let’s briefly take stock of what we have running from the <a href="https://mapzen.com/blog/wof-in-a-box/">first part</a> of this guide.</p><ul><li>We have a git repo of <a href="https://github.com/whosonfirst-data/whosonfirst-data">WOF administrative data</a></li><li>Incoming web requests get proxied by <a href="https://www.nginx.com/">nginx</a></li><li>We can explore the data with our own installation of the <a href="https://github.com/whosonfirst/whosonfirst-www-spelunker/">WOF Spelunker</a></li></ul><p>Some of the stuff we set up in part one, like Elasticsearch and nginx, are dependencies for this second part of the stack too.</p><figure><img alt="Boxes and arrows" src="https://cdn-images-1.medium.com/max/1024/0*y3ngqX2_Cqtwk7ld.png" /></figure><p>These next parts we’re setting up run on a <a href="https://en.wikipedia.org/wiki/LAMP_(software_bundle)">LAMP stack</a>, each built with <a href="https://github.com/exflickr/flamework/blob/master/docs/philosophy.md">Flamework, a set of libraries and conventions</a> originally created for the Flickr back-end. It still works just fine, although you can find some crufty bits if you poke around.</p><p>The two remaining web apps exist separately for now, but could very well be combined into a single codebase at some point in the future. The diagram shown above is rather simplified, and reflects a slight adjustment from the plan in the first part of this guide. Instead of API requests getting routed through /api, we will use the top-level / path.</p><p>The Who’s On First documentation we used to have at the top-level / path is still <a href="https://whosonfirst.mapzen.com/">available online</a>, if not on your NUC.</p><h4>Getting the time right</h4><p>Before we start, there is one minor change from how we set up the server in <a href="https://mapzen.com/blog/wof-in-a-box/">part one</a> of the guide. During the Ubuntu server setup I mentioned that I just accept the defaults except for a handful important changes. One important change that I left out was to set the server’s timezone to <a href="https://en.wikipedia.org/wiki/Coordinated_Universal_Time">UTC (Coordinated Universal Time)</a>.</p><p>We can easily revisit that step in the setup menu.</p><pre>sudo dpkg-reconfigure tzdata</pre><p>Then choose <strong>None of the above</strong>, then <strong>UTC</strong>. Then select <strong>Ok</strong>.</p><p>Let’s err on the side of caution and install some software to ensure the server has the most up-to-date time set.</p><pre>sudo apt-get update<br>sudo apt-get install -y ntpdate</pre><p>Now we can update the time from the <a href="https://www.nist.gov/">National Institute of Standards and Technology</a>.</p><pre>sudo ntpdate time.nist.gov</pre><p>With that settled, let’s continue.</p><figure><img alt="Let&#39;s continue" src="https://cdn-images-1.medium.com/max/298/0*e5ZWZnZjr4X6VsqB.gif" /></figure><h4>Setting up the API</h4><p>Okay, let’s begin setting up the API. I’m going to assume you’re already SSH’d into the NUC machine.</p><pre>cd /usr/local/mapzen<br>git clone <a href="https://github.com/whosonfirst/whosonfirst-www-api.git">https://github.com/whosonfirst/whosonfirst-www-api.git</a></pre><p>Much of the API’s setup process is automated, but if you look inside the <a href="https://github.com/whosonfirst/whosonfirst-www-api/blob/master/Makefile">Makefile</a> you can inspect each step in detail.</p><p>Since we are proxying requests with nginx, we will set things up without SSL support (for now).</p><pre>cd /usr/local/mapzen/whosonfirst-www-api<br>make setup-nossl</pre><p>You may be prompted for your password for sudo. You will also be asked to confirm that you want to install unattended upgrades (Yes) and which updates to install (the default is fine). Finally, you will choose a MySQL root password (and confirm it), then enter it once more to set up the database schema.</p><p>When all of this finishes your API setup will <em>almost</em> be in working order. Some things you should know about how the stack is set up:</p><ul><li>The API’s Apache configuration is symlinked from whosonfirst-www-api/config/whosonfirst-www-api-apache.conf</li><li>The database is called wof_api and is accessed by user wof_api</li><li>All passwords and tokens are stored in www/include/secrets.php</li><li>You will learn a lot by reading <a href="https://github.com/whosonfirst/whosonfirst-www-api/blob/master/www/.htaccess">www/.htaccess</a></li><li>There’s also a great number of configuration tweaks contained in <a href="https://github.com/whosonfirst/whosonfirst-www-api/blob/master/www/include/config.php">www/include/config.php</a> (the convention is to set overrides in a separate file, we’ll get to that down below)</li></ul><h4>Configuring Apache</h4><p>We still need to adjust a couple configurations in Apache, to make the API run on port 8888.</p><pre>cd /usr/local/mapzen/whosonfirst-www-api<br>nano config/whosonfirst-www-api-apache.conf</pre><p>Edit the first line to use port 8888:</p><pre>&lt;VirtualHost *:8888&gt;</pre><p>Next, edit Apache’s ports.conf.</p><pre>sudo nano /etc/apache2/ports.conf</pre><p>We’re instructing Apache to listen on 8888 and also 9999 (for Boundary Issues). We can get rid of the existing configurations for port 80 and 443. Those ports are handled by nginx.</p><pre>Listen 0.0.0.0:8888    # API<br>Listen 0.0.0.0:9999    # Boundary Issues</pre><p>Let’s restart Apache and check to make sure we can reach port 8888.</p><pre>sudo service apache2 restart<br>curl -I <a href="http://localhost:8888/">http://localhost:8888/</a></pre><p>If you see HTTP/1.1 200 OK then you are in good shape.</p><h4>GitHub OAuth application</h4><p>We use GitHub’s OAuth mechanism to authenticate users. We will need to set some things up at GitHub in order for that to work.</p><ul><li>Go to GitHub’s <a href="https://github.com/settings/developers">Developer settings</a> and navigate to OAuth Apps</li><li>Click the <a href="https://github.com/settings/applications/new">New OAuth App</a> button</li><li>Enter an Application Name (WOF in a Box is a good choice)</li><li>For the Homepage URL, enter your server’s IP address, for example <a href="http://192.168.0.47/">http://192.168.0.47/</a></li><li>The Authorization callback URL is similar to the Homepage URL, but with an /auth path suffix, e.g., <a href="http://192.168.0.47/auth">http://192.168.0.47/auth</a></li><li>Click the Register Application button</li></ul><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*64pogThr_t1sP34m.jpg" /></figure><p>Edit /usr/local/mapzen/whosonfirst-www-api/www/include/secrets.php and copy/paste the GitHub OAuth tokens using the following configurations. You’ll want to add this just before # the end.</p><pre>$GLOBALS[&#39;cfg&#39;][&#39;github_oauth_key&#39;] = &#39;(your client ID)&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;github_oauth_secret&#39;] = &#39;(your client secret)&#39;;</pre><h4>Secret hashes</h4><p>While we’re looking at this file, check to see if the first three configurations are set. If they have values like You must set cfg.crypto_password_secret that means we need to set them still. These are used for things like cookie sessions, passwords, and <a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF</a>-deterrent crumbs.</p><p>Generate a new secret hash for each of the three configurations, using the following script:</p><pre>cd /usr/local/mapzen/whosonfirst-www-api<br>php bin/generate_secret.php<br>php bin/generate_secret.php<br>php bin/generate_secret.php</pre><p>Those hashes get copied into secrets.php like this (your hashes will be different):</p><pre>$GLOBALS[&#39;cfg&#39;][&#39;crypto_cookie_secret&#39;] = &#39;lfMi9sHoC2gnFKmMBgG8wUWqvqWO80eq&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;crypto_password_secret&#39;] = &#39;afEp7fVgVe7TeO07jhud1y9opqgmhsmy&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;crypto_crumb_secret&#39;] = &#39;u73GlqrDxqBOriFK921H8a0OsT8YZExz&#39;;</pre><h4>Configuring nginx</h4><p>Before we can test everything, we will need to make one last adjustment to the nginx config. Instead of routing traffic from /api to port 8888, we will send everything from the top level / path.</p><pre>sudo nano /etc/nginx/sites-enabled/whosonfirst</pre><p>First, delete this block:</p><pre>location / {<br>    try_files $uri $uri/ =404;<br>}</pre><p>Then modify the API block to use / instead of /api. Notice there are two places that need editing, the location / part and the proxy_set_header X-Proxy-Path / part.</p><pre>location / {<br>    proxy_pass http://localhost:8888;<br>    proxy_set_header Host $http_host;<br>    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    proxy_set_header X-Scheme $scheme;<br>    proxy_set_header X-Proxy-Path /;<br>}</pre><p>Let’s restart nginx to make those configurations take effect.</p><pre>sudo service nginx restart</pre><h4>Logging in with GitHub</h4><p>There is one last configuration we need to make for all of this to run on plain vanilla HTTP. It’s not so much that we wouldn’t want to run on HTTPS, just that we would need a public hostname, or a self-signed certificate.</p><p>If file config_local.php exists, it gets loaded in to override the default values defined in config.php.</p><pre>cd /usr/local/mapzen/whosonfirst-www-api<br>nano www/include/config_local.php</pre><p>Add the following to disable HTTPS and, while we’re in here, use the right Elasticsearch index:</p><pre>&lt;?php<br><br>    $GLOBALS[&#39;cfg&#39;][&#39;server_force_https&#39;] = 0;<br>    $GLOBALS[&#39;cfg&#39;][&#39;api_require_ssl&#39;] = 0;<br>    $GLOBALS[&#39;cfg&#39;][&#39;elasticsearch_spelunker_index&#39;] = &#39;spelunker&#39;;</pre><p>We don’t need a trailing ?&gt; since it is optional, and can lead to <a href="https://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag">unexpected side-effects</a>.</p><p>Save your config_local.php configuration, and then load up your WOF in a Box’s IP address (something like <a href="http://192.168.0.47/">http://192.168.0.47/</a>) in a browser.</p><p>In the top-right corner, choose <strong>Sign In</strong> from the drop-down menu labeled <strong>You</strong>.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*CbR-KtGSnKvpxAZP.jpg" /></figure><p>GitHub will ask for permission to authenticate you with the OAuth application you just set up. Click the green button to login.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*iHqxbvpNHZaKtfzC.jpg" /></figure><p>You should get redirected back to the WOF in a Box homepage. If all goes well you should see your name appear in the top-right drop-down menu. You have been OAuth’d by GitHub.</p><h4>Create an access token</h4><p>Go to the to-right drop-down menu and choose <strong>Developer</strong>. From here you can explore some of the API methods available, and configure OAuth access.</p><p>Click on <strong>Your Access Tokens</strong>, then <strong>Create a new access token for yourself</strong>.</p><p>Give your token a name (“WOF in a Box” is a safe choice), permissions (“Read” is good), and expiration (“until I revoke it”).</p><p>Then you have to click one more <strong>I agree!</strong> checkbox and you should be set.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*YJZq7aIL5PiL0xWM.jpg" /></figure><p>You should see a green “hooray” message, with a hexidecimal token for you to copy/paste.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*i7weKt3gcsvhz_Po.jpg" /></figure><p>For the sake of having a realistic looking example token, we’ll go with 87ffbaee33443e4b9b385606d6b9af28, but yours will be different.</p><h4>Accessing the API</h4><p>If you navigate to the <strong>API methods</strong> section of the Developer pages, you can try out some of the methods using the web-based API explorer.</p><p>Let’s try calling some API methods using curl.</p><pre>curl -s &quot;http://192.168.0.47/api/rest/?method=api.test.echo&amp;access_token=87ffbaee33443e4b9b385606d6b9af28&quot; | jq</pre><p>You should see the following result:</p><pre>{<br>  &quot;method&quot;: &quot;api.test.echo&quot;,<br>  &quot;access_token&quot;: &quot;87ffbaee33443e4b9b385606d6b9af28&quot;,<br>  &quot;stat&quot;: &quot;ok&quot;<br>}</pre><p>We can use a shell variable to store the IP address and access token, which should make the examples easier to copy/paste. Note, again, that your own IP and token will be different.</p><pre>wof_api=&quot;http://192.168.0.47&quot;<br>wof_token=&quot;87ffbaee33443e4b9b385606d6b9af28&quot;</pre><p>Now we should be able to test out the REST API. Let’s get a list of all the API method names.</p><pre>curl -s &quot;$wof_api/api/rest/?method=api.spec.methods&amp;access_token=$wof_token&quot; | jq &quot;[ .methods[].name ]&quot;</pre><p>Let’s load up some info about a specific WOF record.</p><pre>curl -s &quot;$wof_api/api/rest/?method=whosonfirst.places.getInfo&amp;id=102030609&amp;access_token=$wof_token&quot; | jq</pre><p>You should see a record for <a href="https://whosonfirst.mapzen.com/spelunker/id/102030609/">Mumbai</a>.</p><p>One last example, all the <a href="https://whosonfirst.mapzen.com/docs/placetypes/#microhood">microhoods</a> in <a href="https://whosonfirst.mapzen.com/spelunker/id/85922583/">San Francisco</a>:</p><pre>curl -s &quot;$wof_api/api/rest/?method=whosonfirst.places.getDescendants&amp;id=85922583&amp;placetype=microhood&amp;access_token=$wof_token&quot; | jq &#39;[ .places[][&quot;wof:name&quot;] ]&#39;</pre><p>You should take some time to explore the API documentation, and try out the <a href="https://mapzen.com/blog/whosonfirst-api-explorer/">standalone API Explorer desktop app</a>. It has a settings pane that lets you change the API endpoint, so you can test out requests against your own WOF in a Box rig.</p><p>Important note: not all of the API methods will work for you at this point. We need some additional software for spatial queries and an additional Elasticsearch index for brands to work. Those can be subjects of some future WOF guide.</p><figure><img alt="Onward" src="https://cdn-images-1.medium.com/max/478/0*noCjUeJw2OuzKXYK.gif" /></figure><h4>Setting up Boundary Issues</h4><p>We are in the home stretch. The final part of the stack is <a href="https://mapzen.com/tag/boundaryissues/">our bespoke web-based WOF editor</a>, called <a href="https://github.com/whosonfirst/whosonfirst-www-boundaryissues/">Boundary Issues</a>. It has a similar setup process as the API.</p><pre>cd /usr/local/mapzen<br>git clone <a href="https://github.com/whosonfirst/whosonfirst-www-boundaryissues.git">https://github.com/whosonfirst/whosonfirst-www-boundaryissues.git</a></pre><p>Like the API, much of the setup has been automated with a Makefile to run a sequence of shell scripts. And as with the API, we will set things up without HTTPS, since we’re proxying requests through nginx.</p><pre>cd /usr/local/mapzen/whosonfirst-www-boundaryissues<br>make setup-nossl</pre><p>You will be prompted for your sudo password, and then for the MySQL root password.</p><p>There is a second set of installation scripts that install everything required for offline tasks. The offline task functionality was designed to be an optional add-on to Boundary Issues, so it gets installed with a separate Makefile target.</p><pre>make setup-offline</pre><p>Most of the offline task dependencies are pulled in from modular single-purpose Flamework repos that take care of setting up each of:</p><ul><li><a href="https://github.com/whosonfirst/flamework-redis">redis</a></li><li><a href="https://github.com/whosonfirst/flamework-gearman">gearman</a></li><li><a href="https://github.com/whosonfirst/flamework-logstash">logstash</a></li></ul><p>You may notice the process of setting up gearman has an exceptionally large set of dependencies. This is the unfortunate consequence of apt-get install gearman not working in Ubuntu 16.04. Instead we install a few low-level dependencies and then build it <a href="https://github.com/gearman/gearmand/">from source</a>. The process is automated by a shell script, so you shouldn’t have to type anything extra, but you will notice a whole lot more scrolling by.</p><p>Also, for some reason logstash doesn’t get validated during its installation, so you will need to manually confirm that you’re okay with that.</p><p>Once all that finishes, things will be set up similarly to the API:</p><ul><li>The API’s Apache configuration is symlinked from whosonfirst-www-boundaryissues/config/whosonfirst-www-boundaryissues-apache.conf</li><li>The database is called boundaryissues and is accessed by user boundaryissues</li><li>All passwords and tokens are stored in www/include/secrets.php</li><li>Reading the bottom part of <a href="https://github.com/whosonfirst/whosonfirst-www-boundaryissues/blob/master/www/.htaccess">www/.htaccess</a> will show you all the URL path routing logic</li><li>There’s also an awful lot of configuration tweaks contained in <a href="https://github.com/whosonfirst/whosonfirst-www-boundaryissues/blob/master/www/include/config.php">www/include/config.php</a> (we’ll set some overrides in a config_local.php down below)</li></ul><h4>Configuring Apache (again)</h4><p>Like with the API, we need to adjust a couple configurations to make Boundary Issues run on port 9999.</p><pre>cd /usr/local/mapzen/whosonfirst-www-boundaryissues<br>nano config/whosonfirst-www-boundaryissues-apache.conf</pre><p>Edit the first line to use port 9999:</p><pre>&lt;VirtualHost *:9999&gt;</pre><p>Also, add this additional config after the DocumentRoot part, to get the /boundaryissues path to work properly:</p><pre>Alias /boundaryissues /usr/local/mapzen/whosonfirst-www-boundaryissues/www</pre><p>We already took care of /etc/apache2/ports.conf earlier, so we can just restart Apache and check to make sure we can reach port 9999.</p><pre>sudo service apache2 restart<br>curl -I <a href="http://localhost:9999/">http://localhost:9999/</a></pre><p>If you see HTTP/1.1 200 OK then take a moment to celebrate quietly before we move on.</p><h4>Indexing Elasticsearch (again)</h4><p>One of the quirks about the Who’s On First ecosystem is that Boundary Issues and the Spelunker run on separate Elasticsearch indexes. This was intended to reduce the likelihood of accidentally screwing up live data in the Spelunker. We may combine them at some point, but for now it means we have some more schemas and indexing to take care of.</p><p>Let’s start with the schemas, yes plural. Boundary Issues uses three of them! I’m assuming we already did all the other Elasticsearch setup from <a href="https://mapzen.com/blog/wof-in-a-box/">part one</a> of the guide.</p><pre>cd /usr/local/mapzen/es-whosonfirst-schema<br>cat schema/2.4/mappings.boundaryissues.json | curl -X PUT http://localhost:9200/boundaryissues_20171229 -d @-<br>curl -X POST http://localhost:9200/_aliases -d &#39;{ &quot;actions&quot;: [ { &quot;add&quot;: { &quot;alias&quot;: &quot;boundaryissues&quot;, &quot;index&quot;: &quot;boundaryissues_20171229&quot; } } ] }&#39;<br>cat schema/2.4/mappings.offline_tasks.json | curl -X PUT http://localhost:9200/offline_tasks_20171229 -d @-<br>curl -X POST http://localhost:9200/_aliases -d &#39;{ &quot;actions&quot;: [ { &quot;add&quot;: { &quot;alias&quot;: &quot;offline_tasks&quot;, &quot;index&quot;: &quot;offline_tasks_20171229&quot; } } ] }&#39;<br>cat schema/2.4/mappings.audit_trail.json | curl -X PUT http://localhost:9200/audit_trail_20171229 -d @-<br>curl -X POST http://localhost:9200/_aliases -d &#39;{ &quot;actions&quot;: [ { &quot;add&quot;: { &quot;alias&quot;: &quot;audit_trail&quot;, &quot;index&quot;: &quot;audit_trail_20171229&quot; } } ] }&#39;</pre><p>That’s a whole lot of schemas and aliases. Basically what we did was set up three new indexes, aliased to make future upgrades easier:</p><ul><li>boundaryissues aliased to boundaryissues_20171229</li><li>offline_tasks aliased to offline_tasks_20171229</li><li>audit_trail aliased to audit_trail_20171229</li></ul><p>Now we can start the process of indexing the WOF records into the boundaryissues index. As with the Spelunker’s Elasticsearch index, this will take some time to finish, so you may want to use screen for it.</p><pre>cd /usr/local/data/whosonfirst-data<br>wof-es-index -s . --index=boundaryissues -b</pre><p>Let that run in the background while we finish up the rest of the Boundary Issues setup.</p><h4>Secret hashes and GitHub OAuth (again again)</h4><p>Okay, so a lot of what’s below may seem familiar after setting up the API. And I know you are eager to start editing WOF records. We are getting there!</p><figure><img alt="Angry cat in a box" src="https://cdn-images-1.medium.com/max/320/0*41PQoqkTirJVEkvC.gif" /></figure><p>Unfortunately, because the API and Boundary Issues are separate apps, we need to set up a second GitHub OAuth application to handle redirects properly.</p><ul><li>Go to GitHub’s <a href="https://github.com/settings/developers">Developer settings</a> and click the <a href="https://github.com/settings/applications/new">New OAuth App</a> button</li><li>Enter another Application Name (Boundary Issues in a Box is a good choice)</li><li>For the Homepage URL, enter your server’s IP address, for example <a href="http://192.168.0.47/boundaryissues">http://192.168.0.47/boundaryissues</a></li><li>The Authorization callback URL is similar to the Homepage URL, but with an /auth path suffix, e.g., <a href="http://192.168.0.47/boundaryissues/auth">http://192.168.0.47/boundaryissues/auth</a></li><li>Click the Register Application button</li></ul><p>Now let’s open up secrets.php and insert those GitHub OAuth credentials.</p><pre>$GLOBALS[&#39;cfg&#39;][&#39;github_oauth_key&#39;] = &#39;(your client ID)&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;github_oauth_secret&#39;] = &#39;(your client secret)&#39;;</pre><p>Next we’ll generate three new secret hashes, for the crypto hash configs:</p><pre>cd /usr/local/mapzen/whosonfirst-www-boundaryissues<br>php bin/generate_secret.php<br>php bin/generate_secret.php<br>php bin/generate_secret.php</pre><p>Those hashes get copied into secrets.php like this (your hashes will be different):</p><pre>$GLOBALS[&#39;cfg&#39;][&#39;crypto_cookie_secret&#39;] = &#39;9NBEy7d484AN3muSObRPsicoQIpjrhxQ&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;crypto_password_secret&#39;] = &#39;HRoQz6jcuCB6lHhSmOhlWmfH3X7Nw9xa&#39;;<br>$GLOBALS[&#39;cfg&#39;][&#39;crypto_crumb_secret&#39;] = &#39;AxM2yCFsTwY9lVgyDUpJphrv4Qxf3gwI&#39;;</pre><h4>The pending folder</h4><p>To accommodate the process of saving WOF records, we need to set up a www-writeable directory for incoming edits. It works kind of similarly to a Git index, with subfolders to keep the present edited state and a snapshot record of each edit.</p><p>The convention is to put the pending folder into the same structure as the other data repos.</p><pre>sudo mkdir /usr/local/data/whosonfirst-pending<br>sudo chown www-data:www-data /usr/local/data/whosonfirst-pending</pre><p>… and then symlink <em>that</em> into the Boundary Issues folder.</p><pre>sudo ln -s /usr/local/data/whosonfirst-pending /usr/local/mapzen/whosonfirst-www-boundaryissues/pending</pre><h4>Let’s test things out</h4><p>Now that we’ve set a whole bunch of Boundary Issues stuff… let’s maybe try it?</p><p>Go to http://192.168.0.47/boundaryissues/ in a browser (again, with your IP subbed in), and see if it loads up. You should see something similar, but not quite the same as, the API’s homepage.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*hcJZER0F6uoFNSZ9.jpg" /></figure><p>Click on the same <strong>You</strong> menu and then <strong>Sign in with GitHub</strong>. You should see a similar OAuth confirmation page on GitHub, and then redirect back to the Boundary Issues homepage.</p><p>Once you get redirected back, you will have to accept some terms before you can continue.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*gy1E_V1gRYVVGEBY.jpg" /></figure><p>Let’s search for a record, for example <a href="https://whosonfirst.mapzen.com/spelunker/id/421205765/">Brooklyn</a>.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*jUrFl7ujnaU8aJtR.jpg" /></figure><p>You want to click on the one that’s a <a href="https://whosonfirst.mapzen.com/docs/placetypes/#borough">Borough placetype</a>.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*0dDvO_hgHLk7oqW8.jpg" /></figure><p>Okay now we are getting somewhere, although…</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*5M-BIUlzAWWvlDub.jpg" /></figure><p>… by default, new users don’t have permissions to edit records.</p><h4>Add a user role</h4><p>One last setup task: we just need to add the role admin to your user account and you should be all set.</p><p>Here’s how that works (again, swap in the email address you used to sign up for your GitHub account):</p><pre>cd /usr/local/mapzen/whosonfirst-www-boundaryissues<br>php bin/add_user_role.php your.email@example.com admin</pre><p>You should be prompted with a confirmation (press Y or just press enter).</p><p>There is actually <em>another configuration</em> we should set, inside a new config_local.php file.</p><pre>cd /usr/local/mapzen/whosonfirst-www-boundaryissues/www/include<br>nano config_local.php</pre><p>This will make Boundary Issues update the Spelunker’s Elasticsearch index, upon saving.</p><pre>&lt;?php<br><br>    $GLOBALS[&#39;cfg&#39;][&#39;enable_feature_index_spelunker&#39;] = 1;</pre><p>And <em>one more thing</em> (I know, this is complicated), we need to make sure we have the offline tasks running, since they take care of saving stuff after you hit the <strong>Save</strong> button.</p><pre>sudo /etc/init.d/gearmand start<br>sudo supervisorctl start all</pre><p>Okay, now we should really be ready.</p><h4>Edit a WOF record</h4><p>Go back to the <strong>Edit Brooklyn</strong> page in Boundary Issues and reload it. You should be able to edit things now, yay!</p><p>Scroll down to the <strong>name</strong> section, and expand it open. Add the colonial name “Breuckelen” to the list of variant names (technically this should be under the Dutch language, not English, but one thing at a time).</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*X4XuuVom9meOp8kH.jpg" /></figure><p>Notice how the interface added a blue indicator next to the field? That helps you keep track of which things you’ve edited.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*M1Z7mKCW715y0sFw.jpg" /></figure><p>When you hit the save button, if all goes well, it should replace the list of changed properties with <strong>Saved</strong>. If it gets stuck on <strong>Saving…</strong> you may want to try again and keep an eye on the JavaScript console looking for error messages.</p><p>Finally, let’s try searching for updated name using the Spelunker.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*zrPnjxVkDlkuXu_I.jpg" /></figure><p>Hooray, you made an edit and it showed up in the Spelunker. There is more to all of this that I won’t go into in this blog post. Right now all the changes you make end up in /usr/local/data/whosonfirst-pending, without modifying the actual WOF Git repos. If we wanted to actually upstream the changes to GitHub, we would need to set up a new user on the server (we tend to go with botsonfirst) with credentials to push up to GitHub. And that user would execute the script bin/save_pending.php on a cron job.</p><p>There is also the whole subject of pipeline tasks vs. offline tasks, but maybe you can ask me about that over a beer some day.</p><figure><img alt="Maru" src="https://cdn-images-1.medium.com/max/400/0*nVRlmD_WJpEz9PMy.gif" /></figure><h4>Bundler config</h4><p>Okay one final set of config changes before we call it a day. The Spelunker has a very handy tool called the <a href="https://mapzen.com/blog/bundler/">Bundler</a> and we should get it working with our new <em>WOF in a Box</em> stack.</p><p>SSH into the NUC server and edit the flask config.</p><pre>cd /usr/local/mapzen/whosonfirst-www-spelunker/config/<br>nano whosonfirst-www-spelunker-flask.cfg</pre><p>We’ll make two edits here, the first enables the bundler feature:</p><pre>enable_feature_bundler=1</pre><p>The second will swap where the Spelunker looks for its WOF records from (once again, with your own IP swapped in):</p><pre>data_root=https://192.168.0.47/data</pre><p>There are a couple more edits to another config file: mapzen.whosonfirst.config.js</p><pre>cd /usr/local/mapzen/whosonfirst-www-spelunker/www/static/javascript/<br>nano mapzen.whosonfirst.config.js</pre><p>We are going to scroll down to the bottom and edit this part:</p><pre>if (mapzen.whosonfirst.api) {<br>        mapzen.whosonfirst.api.set_endpoint(&#39;https://&#39; + api_host + api_path);<br>        mapzen.whosonfirst.api.set_key(api_key);<br>}</pre><p>Change it so that it looks like this (remember the access token we generated for the API?):</p><pre>if (mapzen.whosonfirst.api) {<br>        mapzen.whosonfirst.api.set_endpoint(&#39;http://192.168.0.47/api/rest/&#39;);<br>        mapzen.whosonfirst.api.set_token(&#39;87ffbaee33443e4b9b385606d6b9af28&#39;);<br>}</pre><p>Note that we changed the set_key function call to set_token. This is an important difference.</p><p>Okay, now we can try it all out!</p><p>First, restart the Spelunker for the config changes to take effect.</p><pre>sudo /etc/init.d/whosonfirst-www-spelunker.sh restart</pre><p>Next, load up the Spelunker page for Brooklyn (or Breuckelen). The URL should be something like <a href="http://192.168.0.47/spelunker/id/421205765/">http://192.168.0.47/spelunker/id/421205765/.</a></p><p>Now, scroll down until you get to the “Other” links, below the Hierarchy.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/1024/0*KWOMa1QVhMrywo40.jpg" /></figure><p>You should see a new link for <strong>Download descendants of Brooklyn</strong>. Click on that.</p><p>If everything is working, you should now be able to bundle and download all the descendants records of Brooklyn, using the NUC’s API and data. Let’s try getting all the Brooklyn neighbourhoods.</p><figure><img alt="screenshot" src="https://cdn-images-1.medium.com/max/980/0*57p2dOHYRjuDlvh7.gif" /></figure><h4>That’s all, folks</h4><p>That was a whole lotta WOF in a Box, thanks for reading this far!</p><figure><img alt="Too much WOF in the Box" src="https://cdn-images-1.medium.com/max/400/0*gVnHmiay8t0rgTHf.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c53adcb67b82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/wof-in-a-box-part-2-c53adcb67b82">WOF in a Box (part 2)</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Updating Who’s On First Neighbourhoods — Part III]]></title>
            <link>https://medium.com/postzen/updating-whos-on-first-neighbourhoods-part-iii-21cf8f5ef734?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/21cf8f5ef734</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[whosonfirst]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 22 Dec 2017 05:00:00 GMT</pubDate>
            <atom:updated>2018-01-02T15:06:12.860Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/stepps00">Stephen Epps</a> , <a href="https://twitter.com/">Zach Singleton</a> on 22 December 2017.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*0FdF3RPt3bU55eZO.jpg" /></figure><p>In two previous blog posts (<a href="https://mapzen.com/blog/sf-neighbourhood-updates/">part one</a>, <a href="https://mapzen.com/blog/neighbourhood-updates-two/">part two</a>), we discussed out efforts to update neighbourhood records in Who’s On First in over 35 localities around the globe. Today, we’re happy to report that we’ve now imported open neighbourhood data for over 83 localities, as well as all administrative records in the Netherlands!</p><p>We’ve continued to use our streamlined approach to importing <a href="https://github.com/whosonfirst/whosonfirst-sources/tree/master/sources">new sources</a> and adding <a href="https://github.com/whosonfirst/whosonfirst-properties/tree/master/aliases">new properties</a> to existing records. We’ve made substantial gains since our last neighbourhood update eight months ago.</p><p>Now, we’d like to take a moment to outline our most recent efforts.</p><h4>So, what’s been updated?</h4><p>In addition to the previous 35 localities that we’ve updated, we have imported new geometries and additional properties for microhoods, neighbourhoods, macrohoods, boroughs, localities, and some localadmin records in the following areas:</p><ul><li>All (!) of <a href="https://whosonfirst.mapzen.com/spelunker/download/85633337/">the Netherlands</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101735835/">Toronto, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/890458845/">Calgary, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741075/">Vancouver, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741055/">Burnaby, Canada</a></li><li>North Vancouver, Canada (<a href="https://whosonfirst.mapzen.com/spelunker/download/101741057/">City</a> and <a href="https://whosonfirst.mapzen.com/spelunker/download/101741071/">District</a>)</li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741077/">New Westminster, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741081/">Richmond, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741073/">Surrey, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/1108951499/">UBC-Point Grey, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101741069/">West Vancouver, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/890458485/">Edmonton, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/890456619/">Sherwood Park, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/890458621/">St. Albert, Canada</a>)</li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101740879/">Victoria, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101739917/">Regina, Candada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101734959/">Winnipeg, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101740015/">Saskatoon, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101737491/">Quebec City, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101737987/">Levis, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101735873/">Ottawa, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101737759/">Gatineau, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101736545/">Montreal, Canada</a> (and smaller, surrounding localities)</li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101737759/">Laval, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101738793/">Longueuil, Canada</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/421174285/">Buenos Aires, Argentina</a> (Completed by an external contributor, shout out to <a href="https://www.github.com/mfogel">@mfogel</a>!)</li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101748283/">Madrid, Spain</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101748281/">Leganés, Spain</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101748289/">Mostoles, Spain</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101748297/">Fuenlabrada, Spain</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101748323/">Barcelona, Spain</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/101750367/">London, UK</a></li><li><a href="https://whosonfirst.mapzen.com/spelunker/download/85921779/">Santa Barbara, California</a></li></ul><h4>Impressive, but what do these changes actually look like?</h4><p>Below, we’ve created an interactive map with neighbourhood name labels for our updated records in the Netherlands in <a href="https://mapzen.com/tangram/play/">Tangram</a>.</p><p>Notice that different placetype layers as you zoom in. You’ll see:</p><ul><li>Locality records at a min zoom of 6, max zoom of 7.</li><li>Borough records at a min zoom of 7, max zoom of 8.</li><li>Macrohood records at a min zoom of 8, max zoom of 9.</li><li>Neighbourhood records at a min zoom of 9, max zoom of 10.</li><li>Microhood records at a min zoom of 10, max zoom of 14.</li></ul><p>Dive in and enjoy!</p><p><a href="https://tangrams.github.io/tangram-frame/?noscroll&amp;url=https://mapzen-assets.s3.amazonaws.com/images/neighbourhood-updates-III/netherlands_admin.yaml#6.75/52.278/5.553">Tangram Viewer</a></p><p><a href="https://tangrams.github.io/tangram-frame/?url=https://mapzen-assets.s3.amazonaws.com/images/neighbourhood-updates-III/netherlands_admin.yaml#6.75/52.278/5.553">Click to view the Netherlands in full screen ➹</a></p><h4>Property edit work</h4><p>In addition to all of these new, clean geometries, Who’s On First has also completed a substantial amount of work around the following properties for neighbourhood records:</p><ul><li><a href="https://github.com/whosonfirst/whosonfirst-properties/blob/master/properties/mz/min_zoom.json">mz:min_max</a></li><li><a href="https://github.com/whosonfirst/whosonfirst-properties/blob/master/properties/mz/max_zoom.json">mz:max_max</a></li><li><a href="https://github.com/whosonfirst/whosonfirst-properties/blob/master/properties/lbl/latitude.json">lbl:latitude</a></li><li><a href="https://github.com/whosonfirst/whosonfirst-properties/blob/master/properties/lbl/longitude.json">lbl:longitude</a></li></ul><p>Curated values for these properties allow us to be specific when displaying placetype labels in our housestyles, like <a href="https://mapzen.com/products/maps/bubble-wrap/#lat=37.7611&amp;lng=-122.4419&amp;z=13.0250">Bubble Wrap</a>. We’ve imported new, curated zoom level and location values for thousands of Who’s On First records and plan to import many more.</p><h4>What’s Next?</h4><p>We are currently working on importing new geometries and properties for Paris, which should be imported into Who’s On First shortly. Stay tuned for more and thanks for reading!</p><p><em>Photo Credit: </em><a href="https://flic.kr/p/51Rkya"><em>Nathan Russell, Flickr</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21cf8f5ef734" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/updating-whos-on-first-neighbourhoods-part-iii-21cf8f5ef734">Updating Who’s On First Neighbourhoods — Part III</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping the web for All The Places]]></title>
            <link>https://medium.com/postzen/scraping-the-web-for-all-the-places-59f2ffc00852?source=rss-e7cffa548f9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/59f2ffc00852</guid>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Postzen]]></dc:creator>
            <pubDate>Fri, 22 Dec 2017 05:00:00 GMT</pubDate>
            <atom:updated>2018-01-02T15:06:01.303Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was originally published on mapzen.com by <a href="https://twitter.com/iandees">Ian Dees</a> on 22 December 2017.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aX8z8Sufu__cNGo_.png" /></figure><p>Retail brands, chain stores, and other public and private venues have a vested interested in making sure people can find their brick and mortar locations. As a result, they frequently put the information on their website in the form of store locators or listings. Unfortunately, the data is almost never made available in a format that’s easily machine-readable.</p><p>The new All The Places project extracts this useful location information into machine readable geographic data with <a href="https://github.com/alltheplaces/alltheplaces/blob/master/DATA_FORMAT.md">useful properties</a>. It consists of hundreds of website spiders that crawl the web looking for information to extract, translate into a better format, and the code to collate it all together into a data dump suitable for publication.</p><p>After all the spiders run, the result is posted to <a href="http://www.alltheplaces.xyz/">alltheplaces.xyz</a> in GeoJSON format for public download. The last run from Dec. 21st, 2017 included <strong>300,000+</strong> lines (one for each store location) of newline delimited GeoJSON data. This data can then be used to build maps of your favorite stores, merged into gazeteers like <a href="https://whosonfirst.mapzen.com/">Who’s On First</a>, and integrated into search engines like <a href="http://pelias.io/">Pelias</a>.</p><p>All The Places is an independent open source project similar to OpenAddresses in scope and resides <a href="https://github.com/alltheplaces">on GitHub</a>. It’s easy to contribute to All The Places!</p><ul><li>Look through <a href="https://github.com/alltheplaces/alltheplaces/issues">the issues</a> to see if we’ve already tackled your favorite restaurant, salon, or clothing chain. If it’s not there, simply add it as an issue.</li><li>Are you intersted in web scraping or excited to learn how to write spiders? Pick one of <a href="https://github.com/alltheplaces/alltheplaces/issues?q=is%3Aopen+is%3Aissue+no%3Aassignee">the open issues that are unassigned</a> and <a href="https://github.com/alltheplaces/alltheplaces/blob/master/README.md">read the documentation</a> to get started writing your own spider.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59f2ffc00852" width="1" height="1" alt=""><hr><p><a href="https://medium.com/postzen/scraping-the-web-for-all-the-places-59f2ffc00852">Scraping the web for All The Places</a> was originally published in <a href="https://medium.com/postzen">postzen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>