Skip to content

Instantly share code, notes, and snippets.

@cspanring
Last active December 14, 2015 09:59
Show Gist options
  • Select an option

  • Save cspanring/5068803 to your computer and use it in GitHub Desktop.

Select an option

Save cspanring/5068803 to your computer and use it in GitHub Desktop.
Urbanite Location Model
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
},
"properties": {
"name": "NAME",
"bounded_box": {
"southwest": {
"latitute": 0,
"longitute": 0
},
"northeast": {
"latitute": 0,
"longitute": 0
}
},
"categories": [ "ARRAY", "OF","TAGS" ],
"address": {
"street_number": "STREET_NUMBER",
"street_name": "STREET_NAME",
"unit_number": "UNIT_NUMBER",
"intersection": [ "ARRAY", "OF", "INTERSECTING", "STREETS" ],
"neighborhood": "COLLOQUIAL_NAME",
"locality_division": "CITY_DIVISION_NAME",
"locality_division_code": "CITY_DIVISION_CODE",
"locality": "VILLAGE_TOWN_OR_CITY_NAME",
"locality_code": "VILLAGE_TOWN_OR_CITY_CODE",
"district": "DISTRICT_PARISH_OR_COUNTY_NAME",
"district_code": "DISTRICT_PARISH_OR_COUNTY_CODE",
"region": "REGION_NAME",
"region_code": "REGION_CODE",
"territory": "STATE_PROVINCE_OR_TERRITORY_NAME",
"territory_code": "STATE_PROVINCE_OR_TERRITORY_CODE",
"country": "COUNTRY_NAME",
"country_code": "COUNTRY_CODE",
"postal_code": "POSTAL_CODE"
},
"interior": {
"section_name": "BUILDING_WING_OR_SECTION_NAME",
"floor": "FLOOR",
"room": "ROOM"
},
"parent_location": "HASH_OF_PARENT_LOCATION_OR_NULL",
"images": [ "ARRAY", "OF", "IMAGES" ],
"owners": [
{
"attraction": "ATTRACTION_HASH",
"type": "AFFILIATION",
"permission": "PERMISSION_LEVEL"
}
],
"phone": "DISPLAY_PHONE_NUMBER",
"email": "DISPLAY_EMAIL",
"urls": [ "ARRAY", "OF", "URLS" ],
"updated": "HASH_OF_UPDATED_LOCATION_OR_NULL",
"status": "LOCATION_STATUS",
"created_at": "0000-00-00 00:00:00"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment