forked from simonw/timezones-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.json
23 lines (23 loc) · 1.03 KB
/
metadata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"title": "OpenStreetMap Time Zone Boundaries",
"license": "ODbL",
"license_url": "http://opendatacommons.org/licenses/odbl/",
"source": "timezone-boundary-builder",
"source_url": "https://github.com/evansiroky/timezone-boundary-builder",
"databases": {
"timezones": {
"tables": {
"timezones": {
"sortable_columns": ["tzid"]
}
},
"queries": {
"by_point": {
"sql": "select tzid\nfrom\n timezones\nwhere\n within(GeomFromText('POINT(' || :longitude || ' ' || :latitude || ')'), timezones.Geometry)\n and rowid in (\n SELECT pkid FROM idx_timezones_Geometry\n where xmin < :longitude\n and xmax > :longitude\n and ymin < :latitude\n and ymax > :latitude\n )",
"title": "Find timezone by lat/lon",
"description": "Returns the timezone for a specified point on Earth"
}
}
}
}
}