Skip to content

Instantly share code, notes, and snippets.

@marguslt
Last active October 1, 2020 10:04
Show Gist options
  • Save marguslt/43e5bc1b72e535bab8ecff26d29660b1 to your computer and use it in GitHub Desktop.
Save marguslt/43e5bc1b72e535bab8ecff26d29660b1 to your computer and use it in GitHub Desktop.
OSM Overpass API snippets - overpass-turbo.eu/
/*
query bridlways, style according to "foot" tag
seems that without "foot" many routers currently ignore those paths, even though in UK
https://overpass-turbo.eu/s/Pli
*/
[out:json];
(
way[highway=bridleway][designation=public_bridleway]({{bbox}});
);
out body;
>;
out skel qt;
{{style: /* this is the MapCSS stylesheet */
way[highway=bridleway][foot=yes]
{ color:green;}
way[highway=bridleway][foot!=yes]
{ color:red;}
}}
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"generator": "overpass-ide",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.",
"timestamp": "2020-10-01T10:02:02Z",
"features": [
{
"type": "Feature",
"properties": {
"@id": "way/4314936",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes",
"source": "GPS"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6957672,
53.504362
],
[
-1.6954588,
53.5045746
],
[
-1.6951143,
53.5048254
],
[
-1.6940371,
53.5055612
],
[
-1.6925251,
53.5066362
],
[
-1.6923099,
53.5066481
],
[
-1.6912137,
53.5065473
],
[
-1.6896173,
53.5064187
],
[
-1.6869385,
53.5062183
],
[
-1.6852945,
53.5060981
]
]
},
"id": "way/4314936"
},
{
"type": "Feature",
"properties": {
"@id": "way/4314955",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes",
"source": "gps, local knowledge"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6983649,
53.5061374
],
[
-1.6976606,
53.5056198
],
[
-1.6966702,
53.5048587
],
[
-1.695888,
53.5042846
],
[
-1.6957672,
53.504362
]
]
},
"id": "way/4314955"
},
{
"type": "Feature",
"properties": {
"@id": "way/4314956",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"name": "Brook House Lane",
"source:name": "OS_OpenData_Locator",
"surface": "gravel",
"width": "5"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6982528,
53.5061969
],
[
-1.6983649,
53.5061374
],
[
-1.6988827,
53.5060399
],
[
-1.6994065,
53.5059253
],
[
-1.7001187,
53.5058214
],
[
-1.7008164,
53.5057327
],
[
-1.7011064,
53.5057893
],
[
-1.7012565,
53.5058783
],
[
-1.7014473,
53.5059038
],
[
-1.7016528,
53.5058608
],
[
-1.7020088,
53.5056886
],
[
-1.7024605,
53.5054852
],
[
-1.7031288,
53.5052314
],
[
-1.7032165,
53.5050879
]
]
},
"id": "way/4314956"
},
{
"type": "Feature",
"properties": {
"@id": "way/4315289",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"smoothness": "horrible",
"tracktype": "grade2"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7125,
53.4847333
],
[
-1.71215,
53.4849333
],
[
-1.7107667,
53.4850333
],
[
-1.7101841,
53.485116
],
[
-1.7096692,
53.4852097
],
[
-1.7093329,
53.4853356
],
[
-1.7079402,
53.485582
],
[
-1.7065333,
53.4860333
],
[
-1.7060862,
53.486378
],
[
-1.70575,
53.4867667
],
[
-1.7039167,
53.48785
],
[
-1.7036899,
53.4880607
],
[
-1.7022833,
53.4886667
],
[
-1.7014333,
53.48925
],
[
-1.7013,
53.4894333
],
[
-1.70035,
53.4901
],
[
-1.6994902,
53.4909057
],
[
-1.6971833,
53.4927167
],
[
-1.6969,
53.4928167
],
[
-1.6963833,
53.4933333
],
[
-1.6955985,
53.4938212
]
]
},
"id": "way/4315289"
},
{
"type": "Feature",
"properties": {
"@id": "way/4468512",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"smoothness": "horrible"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7035648,
53.4965471
],
[
-1.70375,
53.4961667
],
[
-1.70475,
53.4951667
],
[
-1.7071258,
53.4932038
],
[
-1.7072908,
53.4929666
],
[
-1.7075667,
53.4928833
],
[
-1.7076898,
53.4926503
],
[
-1.7081333,
53.4923
],
[
-1.7083667,
53.4918167
],
[
-1.7082667,
53.4914333
],
[
-1.70855,
53.4908833
],
[
-1.7088507,
53.4906723
],
[
-1.7091068,
53.4903656
],
[
-1.7096956,
53.489806
],
[
-1.7106956,
53.4892783
],
[
-1.7118,
53.48835
],
[
-1.7119333,
53.4879667
],
[
-1.7119167,
53.4871
],
[
-1.71215,
53.4864
],
[
-1.7123,
53.4852833
],
[
-1.7125,
53.4847333
]
]
},
"id": "way/4468512"
},
{
"type": "Feature",
"properties": {
"@id": "way/18648470",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"smoothness": "very_bad",
"surface": "dirt",
"tracktype": "grade5"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7033143,
53.5017944
],
[
-1.7032606,
53.5016954
],
[
-1.7031083,
53.5016413
],
[
-1.7027508,
53.5015027
],
[
-1.7023251,
53.5014013
],
[
-1.7019062,
53.5013137
],
[
-1.7016555,
53.5012354
],
[
-1.7015483,
53.5011544
],
[
-1.7015842,
53.5010552
],
[
-1.7015949,
53.5009391
],
[
-1.7016845,
53.5008715
],
[
-1.7019728,
53.5008917
],
[
-1.7023403,
53.5009217
],
[
-1.7026345,
53.5008919
],
[
-1.7027587,
53.5008129
],
[
-1.7027306,
53.5006509
],
[
-1.7026989,
53.5004159
],
[
-1.7026791,
53.5001398
],
[
-1.7026565,
53.4998238
],
[
-1.7026747,
53.4997042
],
[
-1.7026404,
53.499495
],
[
-1.7026672,
53.4993307
],
[
-1.7027642,
53.4991978
],
[
-1.7028409,
53.4989191
],
[
-1.7030015,
53.4987087
],
[
-1.7031291,
53.4983823
],
[
-1.7031356,
53.498087
],
[
-1.7032176,
53.4977654
],
[
-1.7032468,
53.4975052
],
[
-1.7033585,
53.4972034
],
[
-1.7033395,
53.4969917
],
[
-1.7034197,
53.4968813
],
[
-1.7035648,
53.4965471
]
]
},
"id": "way/18648470"
},
{
"type": "Feature",
"properties": {
"@id": "way/24188390",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes",
"name": "Cut Gate"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7449334,
53.4545827
],
[
-1.7445201,
53.4547804
],
[
-1.7438774,
53.4549756
],
[
-1.7434646,
53.4550483
],
[
-1.7430686,
53.455082
],
[
-1.7424146,
53.4549515
],
[
-1.741851,
53.4548718
],
[
-1.741615,
53.4548848
],
[
-1.7411907,
53.4547974
],
[
-1.7409168,
53.4546313
],
[
-1.7407834,
53.454608
],
[
-1.7405544,
53.4544738
],
[
-1.7404482,
53.4544267
],
[
-1.7403368,
53.454344
],
[
-1.7402365,
53.4543024
],
[
-1.7401606,
53.4542937
],
[
-1.7400776,
53.4543509
],
[
-1.7400239,
53.4543676
],
[
-1.7399056,
53.4543567
],
[
-1.7397857,
53.4542861
],
[
-1.7394751,
53.4542181
],
[
-1.7392219,
53.4540894
],
[
-1.7389698,
53.4539982
],
[
-1.7387903,
53.4539446
],
[
-1.7383917,
53.4538434
],
[
-1.7377738,
53.4536458
],
[
-1.7373343,
53.4535567
],
[
-1.7372136,
53.4535529
],
[
-1.7371635,
53.4535842
],
[
-1.7372416,
53.453656
],
[
-1.7374209,
53.4538349
],
[
-1.737542,
53.453978
],
[
-1.737676,
53.4541004
],
[
-1.7376292,
53.4542242
],
[
-1.7375678,
53.4543204
],
[
-1.7373744,
53.4544406
],
[
-1.7369163,
53.4546634
],
[
-1.7362117,
53.4551024
],
[
-1.7357653,
53.4553937
],
[
-1.7355669,
53.4554773
],
[
-1.7353534,
53.4555266
],
[
-1.7347955,
53.4555112
],
[
-1.7342805,
53.4554601
],
[
-1.7334822,
53.4553937
],
[
-1.7327956,
53.4553426
],
[
-1.7317914,
53.4554448
],
[
-1.7311648,
53.4555981
],
[
-1.7306451,
53.4557844
],
[
-1.7301348,
53.4561501
],
[
-1.7296949,
53.4564649
],
[
-1.7293318,
53.4567051
],
[
-1.7289619,
53.4570196
],
[
-1.7287513,
53.4571257
],
[
-1.7286575,
53.4572411
],
[
-1.728523,
53.4575804
],
[
-1.7283466,
53.4578026
],
[
-1.7281455,
53.457968
],
[
-1.7277831,
53.4581806
],
[
-1.7276034,
53.4584069
],
[
-1.7273539,
53.4586542
],
[
-1.7269851,
53.4589055
],
[
-1.7266061,
53.4590546
],
[
-1.7259549,
53.459293
],
[
-1.7256574,
53.4594047
],
[
-1.7253961,
53.4595626
],
[
-1.7249681,
53.4596765
],
[
-1.7246417,
53.4597172
],
[
-1.7239808,
53.4598807
],
[
-1.7236068,
53.4599921
],
[
-1.7232929,
53.4601149
],
[
-1.7231834,
53.4601921
],
[
-1.7224538,
53.4605985
],
[
-1.7222682,
53.4607369
],
[
-1.7220566,
53.4608193
],
[
-1.7214539,
53.4609664
],
[
-1.7208864,
53.4612534
],
[
-1.7203417,
53.4614101
],
[
-1.7200524,
53.4615572
],
[
-1.719857,
53.4617329
],
[
-1.7197474,
53.4619129
],
[
-1.7197463,
53.4620478
],
[
-1.7196214,
53.4622945
],
[
-1.7194071,
53.4625918
],
[
-1.7190529,
53.4630027
],
[
-1.7183359,
53.4638579
],
[
-1.7178161,
53.4643242
],
[
-1.7174826,
53.4647639
],
[
-1.7173557,
53.4648607
],
[
-1.7163502,
53.4650772
],
[
-1.7160389,
53.4651893
],
[
-1.7149573,
53.4659482
],
[
-1.7147461,
53.4660975
],
[
-1.7144434,
53.4662101
],
[
-1.7141546,
53.4670387
],
[
-1.7139282,
53.4676084
],
[
-1.7138434,
53.4677505
],
[
-1.7132902,
53.4679147
],
[
-1.7127916,
53.46804
],
[
-1.7121212,
53.4683811
],
[
-1.7117774,
53.4687846
],
[
-1.7110159,
53.4697524
],
[
-1.7108277,
53.470066
],
[
-1.7107998,
53.4703282
],
[
-1.7109685,
53.4706529
],
[
-1.7110497,
53.4708392
],
[
-1.7110879,
53.4711062
],
[
-1.7107381,
53.4716697
],
[
-1.7104396,
53.4720311
],
[
-1.7099662,
53.4722455
],
[
-1.7098325,
53.4724905
],
[
-1.7098448,
53.4727672
],
[
-1.7097337,
53.4729045
],
[
-1.7097145,
53.4729879
],
[
-1.7095203,
53.4731667
],
[
-1.7095218,
53.4732931
],
[
-1.709287,
53.4738319
],
[
-1.7092676,
53.4740756
],
[
-1.7093591,
53.4741872
],
[
-1.7097333,
53.4747124
],
[
-1.7098847,
53.4750731
],
[
-1.7097662,
53.4754063
],
[
-1.7098867,
53.4757512
],
[
-1.7099374,
53.4758962
],
[
-1.710786,
53.4773929
],
[
-1.7108705,
53.4780974
],
[
-1.7115447,
53.4794185
],
[
-1.712557,
53.4807128
],
[
-1.7129408,
53.4821098
],
[
-1.7131282,
53.4825093
],
[
-1.7131553,
53.4829088
],
[
-1.7129976,
53.4834752
],
[
-1.7129015,
53.4836675
],
[
-1.7125,
53.4847333
]
]
},
"id": "way/24188390"
},
{
"type": "Feature",
"properties": {
"@id": "way/34025264",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes",
"name": "Swinden Lane",
"surface": "grass"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7124958,
53.5037678
],
[
-1.7145128,
53.5037882
],
[
-1.7158795,
53.5038142
],
[
-1.7161265,
53.5038189
],
[
-1.7173281,
53.5038291
],
[
-1.7187142,
53.5038849
],
[
-1.7188473,
53.5038903
],
[
-1.7190026,
53.5038946
],
[
-1.7207098,
53.5039414
],
[
-1.7222548,
53.5039822
],
[
-1.7235937,
53.5040333
],
[
-1.7236561,
53.5040041
],
[
-1.7236504,
53.5037824
],
[
-1.7237157,
53.5037291
],
[
-1.7238887,
53.503744
],
[
-1.7239453,
53.5037789
]
]
},
"id": "way/34025264"
},
{
"type": "Feature",
"properties": {
"@id": "way/105653756",
"bicycle": "yes",
"designation": "public_bridleway",
"highway": "bridleway"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7135458,
53.509287
],
[
-1.7135381,
53.5093434
],
[
-1.7131798,
53.5094083
],
[
-1.7131907,
53.5094723
],
[
-1.7120252,
53.5097582
],
[
-1.7117686,
53.5098143
]
]
},
"id": "way/105653756"
},
{
"type": "Feature",
"properties": {
"@id": "way/236191790",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7033315,
53.5018659
],
[
-1.7033603,
53.5020266
],
[
-1.703326,
53.5021543
],
[
-1.7032659,
53.5022717
],
[
-1.7030811,
53.5023447
],
[
-1.7030377,
53.5024843
],
[
-1.7031251,
53.502586
],
[
-1.7031018,
53.5026797
],
[
-1.7030424,
53.5027908
],
[
-1.7030491,
53.5029053
],
[
-1.7030896,
53.5030918
],
[
-1.703104,
53.5031924
],
[
-1.7031653,
53.5033776
],
[
-1.7031692,
53.5034699
],
[
-1.7031746,
53.5035061
],
[
-1.7031861,
53.5036585
],
[
-1.7031925,
53.5037947
],
[
-1.703186,
53.5039596
],
[
-1.7032112,
53.5041078
],
[
-1.7032551,
53.5043462
],
[
-1.7032925,
53.5044609
],
[
-1.7033175,
53.5047107
],
[
-1.7033425,
53.5049262
],
[
-1.7032165,
53.5050879
]
]
},
"id": "way/236191790"
},
{
"type": "Feature",
"properties": {
"@id": "way/301105570",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes",
"surface": "dirt",
"tracktype": "grade2"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.67843,
53.4930639
],
[
-1.6784824,
53.4928856
],
[
-1.6785464,
53.4928268
],
[
-1.6787151,
53.4927714
],
[
-1.678878,
53.492652
],
[
-1.67891,
53.4925931
],
[
-1.6790002,
53.4924322
],
[
-1.6790206,
53.4922609
],
[
-1.6790145,
53.4921023
]
]
},
"id": "way/301105570"
},
{
"type": "Feature",
"properties": {
"@id": "way/562333249",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7031288,
53.5052314
],
[
-1.7034199,
53.5050372
],
[
-1.7035166,
53.5049783
],
[
-1.7038012,
53.5048909
],
[
-1.7041702,
53.5048245
],
[
-1.7045994,
53.50485
],
[
-1.7050886,
53.5049011
],
[
-1.7055178,
53.5049113
],
[
-1.7060328,
53.5049419
],
[
-1.7064276,
53.5049521
],
[
-1.7067407,
53.5049315
],
[
-1.7070627,
53.5048756
],
[
-1.7074919,
53.504799
],
[
-1.7079039,
53.5047479
],
[
-1.708333,
53.5046969
],
[
-1.7088309,
53.5046714
],
[
-1.7094059,
53.5046458
],
[
-1.7096006,
53.5045839
],
[
-1.7096997,
53.5044792
],
[
-1.7096522,
53.5043368
],
[
-1.7103414,
53.5044422
],
[
-1.7109009,
53.5044713
],
[
-1.7114401,
53.5044416
],
[
-1.7117171,
53.5043295
],
[
-1.7119635,
53.5041542
],
[
-1.7121525,
53.5040077
],
[
-1.7124958,
53.5037678
]
]
},
"id": "way/562333249"
},
{
"type": "Feature",
"properties": {
"@id": "way/591622430",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7051225,
53.5086833
],
[
-1.7047919,
53.5081602
],
[
-1.7051009,
53.5071931
],
[
-1.7047432,
53.5058487
],
[
-1.7046854,
53.5054944
],
[
-1.7044908,
53.5053444
],
[
-1.7035121,
53.5050965
],
[
-1.7034199,
53.5050372
]
]
},
"id": "way/591622430"
},
{
"type": "Feature",
"properties": {
"@id": "way/624754156",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6972619,
53.5033358
],
[
-1.6959121,
53.5042692
],
[
-1.695888,
53.5042846
]
]
},
"id": "way/624754156"
},
{
"type": "Feature",
"properties": {
"@id": "way/631383806",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6761264,
53.4927969
],
[
-1.6759469,
53.492805
],
[
-1.67562,
53.4928196
],
[
-1.6751315,
53.4928698
],
[
-1.6747499,
53.492934
],
[
-1.6742133,
53.4929145
],
[
-1.6737478,
53.4929206
],
[
-1.6735928,
53.4929369
],
[
-1.6725826,
53.492007
],
[
-1.6721686,
53.4914797
]
]
},
"id": "way/631383806"
},
{
"type": "Feature",
"properties": {
"@id": "way/631866518",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.6645959,
53.5023532
],
[
-1.6648259,
53.5022867
],
[
-1.666695,
53.5014409
],
[
-1.667155,
53.5013612
],
[
-1.668306,
53.5006918
],
[
-1.6683229,
53.5006359
]
]
},
"id": "way/631866518"
},
{
"type": "Feature",
"properties": {
"@id": "way/633824909",
"bicycle": "yes",
"designation": "public_bridleway",
"foot": "yes",
"highway": "bridleway",
"horse": "yes"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7052522,
53.5086935
],
[
-1.7052469,
53.5087302
],
[
-1.7054604,
53.5093323
],
[
-1.7057671,
53.5101114
]
]
},
"id": "way/633824909"
},
{
"type": "Feature",
"properties": {
"@id": "way/852373419",
"bicycle": "yes",
"designation": "public_bridleway",
"highway": "bridleway"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-1.7117686,
53.5098143
],
[
-1.7119436,
53.5102538
],
[
-1.7120736,
53.5106393
],
[
-1.7122949,
53.5112662
],
[
-1.712513,
53.5117766
],
[
-1.7127212,
53.5123192
],
[
-1.71295,
53.5129145
],
[
-1.713196,
53.5135693
],
[
-1.7133738,
53.5139802
],
[
-1.7134657,
53.5142377
],
[
-1.7135083,
53.5147617
],
[
-1.7135575,
53.5152199
],
[
-1.7137625,
53.5157269
],
[
-1.7140002,
53.5163022
],
[
-1.7142708,
53.5168725
],
[
-1.7145905,
53.5174672
],
[
-1.7149739,
53.517997
]
]
},
"id": "way/852373419"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment