From 0e5e284b7eedaf1335b0e9e0bc5723517f67f610 Mon Sep 17 00:00:00 2001 From: Riordan Date: Thu, 14 Apr 2016 14:28:30 -0400 Subject: [PATCH] word finishes --- ids.md | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/ids.md b/ids.md index 1c4a9b0..e958991 100644 --- a/ids.md +++ b/ids.md @@ -12,30 +12,16 @@ A record's `gid`'s in Mapzen Search looks like: **1. Do not use Mapzen Search `gid`'s as permanent identifiers for places.** -`gid`'s in Mapzen Search can change because several of our data sources also lack permanent IDs. Some of our sources do not provide ways to track [...]. - +`gid`'s in Mapzen Search can change because several of our data sources also lack permanent IDs. Some of our sources do not provide ways to track changes between each release of the data. This is particularly true for OpenAddresses, where there are no general ID's for each address. With OpenStreetMap it is possible for an entry to be superseded by another place, but for there to be no indicator of what the replacement place is. **2. The structure of identifiers in Mapzen Search may change.** +This is not necessarily the final configuration of ID's in Mapzen Search. We reserve the right change their structure at some time in the future. - -## Source-specific `gid` structures - - - - - - +**3. The Mapzen Search ID for a place may not be the same exact ID in other systems.** +While some of our sources do have persistent ID's (e.g. Node/Way ID's in OpenStreetMap or all Who's on First ID's), we augment them to fit into our taxonomy and add the source dataset. While the numeric component of a Mapzen Search record coming from Who's on First can be used as its ID, you can't just use a Who's on First ID to get the record from Mapzen Search. - -
Source Examples Structure Notes
Who's on First -
  • `whosonfirst:locality:101750367`
  • `whosonfirst:country:85633793`
-
- - -| Source | Examples | Structure | Notes | -| ------ | --------- | ----------- | -------- | -| _Who's on First_ | | whosonfirst +## Source-specific `gid` structures ### _Who's on First_ | `whosonfirst` @@ -54,7 +40,20 @@ The numeric identifier at the end of a Who's on First `gid` _may be considered a ### OpenStreetMap | `openstreetmap` + Results coming from OpenStreetMap take the form of: +`"gid": "openstreetmap::id:"` + +There's a lot to unpack about that. + +``: corresponds to the core OpenStreetMap data type for that place, or [Element](http://wiki.openstreetmap.org/wiki/Elements). These are the geometries that data about a place is attached to in OpenStreetMap. There are 3 elements in OpenStreetMap: +* [Nodes](http://wiki.openstreetmap.org/wiki/Node), which are points corresponding to a latitude and longitude on earth. Nodes have positive numbers as their ID numbers in OpenStreetMap. +* [Ways](http://wiki.openstreetmap.org/wiki/Way), which are ordered collections of points that can make up a line or a polygon +* [Relations](http://wiki.openstreetmap.org/wiki/Relation), which are arbitrary collections of points, lines, and relations. + + + +Records coming from OpenStreetMap can take the form of ### OpenAddresses | `openaddresses`