• Stars
    star
    230
  • Rank 169,121 (Top 4 %)
  • Language Makefile
  • License
    Other
  • Created almost 11 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

quattroshapes

The Global Polygon Gazetteer

Foursquare needs quality place data to power its geocoding engine to ensure the best recommendations. When someone searches for the best coffee in Brooklyn, a simple venue to place point or venue to place bounding box search can result in venues in Manhattan and Jersey City overwhelming the results for Brooklyn.

To improve recommendations, we have created an authoritative source of polygons around a curated list of places. This gazetteer of non-overlapping polygons provides more relevant results than simple point geometries.

View preview images ยป

This work is based on foursquare checkins, geo tagged photos from Flickr, an extended version of Natural Earth, and open government data. Concordance is provided between quattroshapes, geonames.org, and Yahoo! GeoPlanet unique IDs in the gazetteer.

The quattroshapes technique calculates the dominant place ID for a given area based on heterogeneous inputs. This work is an extension of alphashapes and betashapes (thanks Aaron and Schuyler!) and is used to backfill countries without complete open data.

Matching mapping agency polygons to the geonames.org dataset was performed using shape-gn-matchr. Concording geoplanet to geonames lives at geoplanet-concordance.

Geocoding can be the hardest part about going open source - and reverse geocoding is even harder. Reverse geocoding reports the gazetteer place for a latitude and longitude map location or address string and is useful when source data needs to be normalized. This new polygon gazetteer data is used in Twofishes (demo), the coarse splitting geocoder (and reverse geocoder) written in scala from David Blackman at foursquare.

The quattroshapes code and resulting 30 gb of data are licensed under CC-BY, but includes data licensed from many governments around the world. Check the License for full details and limitations.

Enjoy!


Downloads

Shapefiles are in WGS84 (geographic) projection and UTF-8 character encoding.

Goodies

quatroshapes gazetteer (gzipped geojson):

Other:

Preview

Administrative level 1: (below) States and provinces in orange; regions shown in red. Mix of national mapping agency and Natural Earth.

qs_adm1

Administrative level 2: (below) Counties in bright blue; regions shown in dark blue. National mapping agency data.

qs_adm2

Local administrative level: (below) In green. This level of government assumes municipal type control over the central town and surrounding countryside. National mapping agency data.

qs_localadmin

Localities: (below) In yellow. In the USA this is the smallest unit of government with legal boundaries. For most other countries the localities here are informal parts of local administrative areas. Mix of national mapping agency, quattroshapes enumeration using foursquare checkins & custom data.

qs_localities

Administrative level 0: (below) In gray. Mix of national mapping agency and US State Department data.

qs_adm0

Neighborhoods: (below) In purple. Quattroshape enumeration from geo tagged photos in Flickr using GeoPlanet hierarchy.

qs_neighborhoods

Gazetteer: (below) In light purple. Over 1 million administrative and populated places with around 800,000 having concordance between GeoNames.org and Yahoo! GeoPlanet WOE unique IDs.

qs_gazetteer

More Repositories

1

rogue

MOVED - The project is still under development but this page is deprecated.
Scala
489
star
2

twofishes

MOVED - The project is still under development but this page is deprecated.
Scala
433
star
3

FSNetworking

foursquare iOS networking library
Objective-C
384
star
4

fsqio

A monorepo that holds all of Foursquare's opensource projects
Scala
252
star
5

FSQCollectionViewAlignedLayout

FSQCollectionViewAlignedLayout is a generic collection view layout designed to be very flexible and configurable. It's goal is to save its users from having to write their own custom layout classes every time UICollectionViewFlowLayout is not appropriate for their view.
Objective-C
176
star
6

fongo

faked out in-memory mongo for java
Java
150
star
7

foursquare-android-oauth

Foursquare native authentication makes it easier for your app's users to connect with Foursquare. Unlike web-based OAuth, native authentication re-uses the Foursquare app's user credentials, saving users the hassle of re-logging in to Foursquare within your app.
Java
134
star
8

foursquare-palmpre

A webOS app (Mojo Framework)
JavaScript
105
star
9

foursquare-ios-oauth

Foursquare native authentication makes it easier for your app's users to connect with Foursquare. Unlike web-based OAuth, native authentication re-uses the Foursquare app's user credentials, saving users the hassle of re-logging in to Foursquare within your app.
Objective-C
104
star
10

slashem

A rogue-like DSL for querying SOLR
Scala
103
star
11

FSQLocationBroker

A centralized location manager for your app.
Objective-C
94
star
12

oozie-web

A more pretty, more usable web dashboard for Apache Oozie, written in Scala.
JavaScript
74
star
13

foursquare-fhttp

MOVED - The project is still under development but this page is deprecated.
Scala
44
star
14

FSQCellManifest

A UITableView and UICollectionView delegate and datasource that provides a simpler unified interface for describing your sections and cells.
Objective-C
43
star
15

quiver

An HFile-backed Key-Value Server
Go
42
star
16

hackathon

foursquare hackathonsโ„ข
40
star
17

spindle

MOVED - The project is still under development but this page is deprecated.
Scala
39
star
18

mongo-hdfs-export

Scala
31
star
19

foursquare-app-framework

Framework for building Connected Apps
Python
31
star
20

react-foursquare

Foursquare Library for React
JavaScript
25
star
21

es-scorer-plugin

Plugin to do our scoring in ES
Scala
24
star
22

sites-to-markdown

convert google sites html to markdown
Java
22
star
23

FSQRoutes

URL routing framework for iOS
Objective-C
21
star
24

qgis-plugin

Foursquare Studio plugin for QGIS
Python
19
star
25

datasource-plugin-clouderamanager

Cloudera Manager datasource for Grafana 3.x
JavaScript
19
star
26

fsq-studio-sdk-examples

Foursquare Studio is a platform to visualize, unify, enrich, and analyze spatial data on a planetary scale.
Jupyter Notebook
18
star
27

twitter-util-async

scala-async support for twitter util library
Scala
15
star
28

foursquair

An Adobe AIR desktop client for foursquare
ActionScript
14
star
29

Place-API-Postman-Collection

Postman collection that contains almost all the sample Foursquare Places API calls.
14
star
30

placepicker-sdk-sample

An SDK to help developers add a place picker to their app and also quickly access the Foursquare place that their user is at.
Java
11
star
31

wait

wait gem: executes a block until there's a result
Ruby
10
star
32

hoursparser.js

dumb but useful hours extractor from free-text entry
JavaScript
9
star
33

gitshed

git versioning of large binary files outside the repo.
Python
8
star
34

shapefile-geo

Java
8
star
35

pilgrim-sdk-react-native

React native wrapper for the Pilgrim SDK
Java
7
star
36

h3-presto

Presto bindings for H3, a hierarchical hexagonal geospatial indexing system
Java
7
star
37

fsgo

Reusable libraries for building Go services
Go
7
star
38

FSQMessageForwarder

An Obj-C message forwarder class, for when you don't have access to the source of the sending object.
Objective-C
6
star
39

merchant-app

JavaScript
5
star
40

source_code_analysis

Utilities to analyze, lint and rewrite source code in various languages.
Python
5
star
41

gohfile

5
star
42

exceptionator

MOVED - The project is still under development but this page is deprecated.
JavaScript
5
star
43

foursquare-places

framework agnostic wrapper for foursquare's APIs
JavaScript
5
star
44

android-map-utils

A collection of 3rd party map utility classes
4
star
45

cc-shapefiles

Scala
3
star
46

pilgrim-unity-package

Unity package which enables easy integration with Pilgrim SDK
Objective-C
3
star
47

foursquareapi-csharp

C#
3
star
48

foursquare.github.io

Foursquare open source portal
HTML
2
star
49

simple-macros

MOVED - The project is still under development but this page is deprecated.
Scala
2
star
50

foursquare-places-api-samples

Developer Examples for using Foursquare products
HTML
2
star
51

FSQComponents

Objective-C
2
star
52

RNPilgrimSample

Pilgrim sample app using React Native
Java
2
star
53

json-traverser

Scala
1
star
54

hackmidwest

This repo contains everything developers need to get started at Hack Midwest!
1
star
55

MovementSdk-CocoaPods-Beta

Private CocoaPods Spec repo for the Movement SDK
Ruby
1
star
56

finagle-dual

Support thrift and HTTP on same port with Finagle
Scala
1
star
57

movement-sdk-react-native

React native wrapper for the Movement SDK
Objective-C
1
star
58

pilgrimsdk-adobe-extension

The pilgrim adobe extension
Kotlin
1
star
59

public-model-resources

Jupyter Notebook
1
star
60

mobbing-interview-python

Used by the Security & Quality Team for interviews
1
star
61

movementsdk-ios-spm

Movement SDK for iOS - Swift Package Manager
Swift
1
star
62

RNMovementSample

Movement SDK sample app using React Native
Java
1
star
63

Pilgrim-CocoaPods-Beta

Public cocoapods spec repo for Pilgrim SDK beta builds
Ruby
1
star
64

pilgrim-ios-spm

Pilgrim SDK for iOS - Swift Package Manager
Swift
1
star
65

alertmon

Foursquare's homegrown production alerting platform
Python
1
star
66

commons-old

Temporary duplicate of foursquare/commons (a fork of twitter/commons) while we restructure things.
Java
1
star