Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gazetteer 3.0 #19

Merged
merged 42 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3677cea
Convert cities to data structure that reflects the Mapbox Streets vec…
May 3, 2017
800405c
added some city grid (road) features
May 4, 2017
00d4460
Add barrier_line and landuse features
May 4, 2017
6c85b10
Make city capital fields a separate highlight
May 5, 2017
e1657f4
Revert "Make city capital fields a separate highlight"
May 5, 2017
3cde8fe
Rewrite tests for new structure
May 8, 2017
78ae40f
more road entries ported from v2
May 19, 2017
b0532fd
highway interchange entries ported from gazetteer-2
May 23, 2017
b8c0f73
Add data layers to GeoJSON collection
lukasmartinelli May 23, 2017
5f8f65b
Fix data_layer_fields is no object
lukasmartinelli May 23, 2017
22a8931
footway entries
May 23, 2017
d415240
Merge branch 'gazetteer-3' of github.com:mapbox/gazetteer into gazett…
May 23, 2017
13bba38
Include all places with road highlights in a Auto Navigation set
Jun 15, 2017
2d0de50
ported more places from gazetteer 2.0
Jun 22, 2017
f18c2ff
remove restriction on noninteger zoom levels
Jun 23, 2017
817a7ac
Add Cities set
Jun 26, 2017
1020b01
clean up/remove a couple places from cities set
Jul 11, 2017
b8baace
fix coordinates and names for a few places in the auto navigation set
Jul 11, 2017
dc00ea6
add more places for auto navigation set
Jul 12, 2017
c54e497
add initial revamped spec proposal
Jun 7, 2018
6aceb60
update spec based on PR reviews
Jun 11, 2018
fbc2126
spec formatting
Jun 11, 2018
4109dc7
Update spec.md
Jun 22, 2018
cf49171
Add syntax highlighting to spec.md
Jul 16, 2018
40ea5a9
Update README.md
Jul 16, 2018
ba1b718
Create CONTRIBUTING.md
Jul 16, 2018
7c82c7f
adding mapbox-streets folder with natural-label gazetteer
Jul 16, 2018
2f4b790
refining place_name, description and tags fields
Jul 17, 2018
83863ff
Merge pull request #26 from mapbox/25
natslaughter Jul 17, 2018
c552531
update contributing guidelines and readme based on PR review
Jul 17, 2018
1971f61
Merge pull request #25 from mapbox/nickidlugash-patch-1
Jul 17, 2018
87b5f6b
move old gazetteer to deprecated file
Jul 19, 2018
4d394ed
rename deprecated folder with underscore
Jul 19, 2018
052b799
Merge pull request #27 from mapbox/move-deprecated
Jul 19, 2018
fc41521
sub-settlement gazetteer
Jul 20, 2018
8e17ff3
Merge branch 'gazetteer-3' of github.com:mapbox/gazetteer into gazett…
Jul 20, 2018
c78da74
renaming place_sub-settlement to suburb-quarter-neighbourhood
Jul 20, 2018
f4e475b
add poi-label gazetteer
Jul 23, 2018
250496a
Fix tests
Jul 23, 2018
53e18ac
update poi gazetteer name and remove id field
Jul 25, 2018
54e05b9
Merge pull request #28 from mapbox/poi-label-gazetteer
Jul 25, 2018
3b2451d
Prepare for publish
Jul 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
node_modules
_site/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- "0.10"
- "6"
84 changes: 84 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Contributing guidelines

A single "gazetteer" in this project is a collection of places that are thematically related or relevant to a particular map styling task. Keeping the content of a gazetteer focused and clearly defined will help map designers pick suitable gazetteers for reviewing their map styling projects.

A gazetteer is a json file which conforms to the gazetteer spec.

You can contribute by either adding new places to an existing gazetteer file, or adding a new gazetteer file.

### Choosing places to add to a gazetteer

Typically, you’ll want to pick places that clearly display either:

- A single map feature (e.g. a tunnel)
- A cluster or group of map features (e.g. several tunnels, surface roads, and bridges)
- Map features that interact with each other (e.g. a tunnel under a park)

### Considerations for choosing places

- [ ] Is it **famous or notable**?
- [ ] Is it relatively **permanent and stable**?
- [ ] Is it one of the following?
1. An **archetypal** example of a map feature or map feature interaction?
2. An **extreme** example of a map feature or map feature interaction (in size, density, etc)?
3. An **unusual** example of a map feature or map feature interaction (in shape, location relative to other features, etc)?
- [ ] Do you have reliable [**ground truth**](https://en.wikipedia.org/wiki/Ground_truth) information?

## Mapbox Streets gazetteers

Gazetteers designed for reviewing styles using Mapbox Streets data can go in the `/mapbox-streets` directory.

### Suggestions for places’ properties values
Refer to the gazetteer spec for properties available to each place entry.

#### place_name
Choose a name that is as specific as possible to the map feature(s) displayed. For context, it is often helpful to also include the place or geographic feature that encompasses the specific map feature, e.g. “Jane Byrne Interchange, Chicago", “Central Park, New York City”, or "New York City, United States".

#### zoom
Use integer zoom levels.

#### description
Explain why this particular place is significant in the context of this gazetteer.

#### highlights
A "highlight" is a json object that describes a map feature within the place by defining the map feature's data values.

Mapbox Streets gazetteers should as much as possible include highlights in each entry.

Only include highights entries for map features that are relevant to the reason why a place was chosen. For each relevant map feature, only include relevant "data_layer_fields".

If a place includes multiple relevant map features, add a separate highlight for each if they have any different data layer field values that are relevant, even if they are from the same data layer. E.g., if a place has two motorways – one bridge and one tunnel – you may want to include two separate highlights:


"highlights": [
{
"data_layer": "road",
"data_layer_fields": {
"class": "motorway",
"structure": "tunnel"
}
},
{
"data_layer": "road",
"data_layer_fields": {
"class": "motorway",
"structure": "bridge"
}
}
]

Whereas if a place has two motorways that are both tunnels, you can represent both with a single highlight:


"highlights": [
{
"data_layer": "road",
"data_layer_fields": {
"class": "motorway",
"structure": "tunnel"
}
}
]

#### tags
Optionally include arbitrary key/value tags to capture useful distinctions between places that are not already represented in the data-specific information.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@ gazetteer

[![build status](https://secure.travis-ci.org/mapbox/gazetteer.png)](http://travis-ci.org/mapbox/gazetteer)

Place bookmarks for styling maps
An index of places for styling maps, organized into a collection of machine-readable files.

### Usage

This package exports two functions:

* `get` for retrieving gazetteers by name.
* `lint` for checking if a JSON object conforms to [the gazetteer spec](./spec.md).

```
import gazetteer from '@mapbox/gazetteer';

gazetteer.get('natural-label') // Returns a geoJSON FeatureCollection
gazetteer.lint(myGazetteerJson) // Returns an array of error messages
```
Loading