Skip to content

Instantly share code, notes, and snippets.

@fozoglu
Created June 7, 2017 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fozoglu/bca7802e4b846c3f6b4e89a67abe3d7a to your computer and use it in GitHub Desktop.
Save fozoglu/bca7802e4b846c3f6b4e89a67abe3d7a to your computer and use it in GitHub Desktop.
Esri Route Service
{
"messages": [],
"routes": {
"hasM": true,
"fieldAliases": {
"ObjectID": "ObjectID",
"Name": "Name",
"FirstStopID": "FirstStopID",
"LastStopID": "LastStopID",
"StopCount": "StopCount",
"Total_METER": "Total_METER",
"Shape_Length": "Shape_Length"
},
"geometryType": "esriGeometryPolyline",
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"features": [
{
"attributes": {
"ObjectID": 1,
"Name": "Location 1 - Location 2",
"FirstStopID": 1,
"LastStopID": 2,
"StopCount": 2,
"Total_METER": 2564.653217538338,
"Shape_Length": 0.027747487683038353
},
"geometry": {
"hasM": true,
"paths": [
[
[
28.94092753500007,
41.024086038000064,
0
],
[
28.940952718000062,
41.02405898000006,
3.6763271589756013
],
[
28.940967426000043,
41.02403383200004,
6.730747675657272
],
[
28.941055469000048,
41.02390222500003,
23.115080475330352
],
[
28.94110539500008,
41.02382448000003,
32.71587971329689
],
[
28.941144890000032,
41.02375334300007,
41.28593627886772
],
[
28.941160142000058,
41.023722202000044,
44.97451393918991
],
[
28.941173365000054,
41.02368025100003,
49.764204489946366
],
[
28.94153488300003,
41.023634048000076,
80.59962109732628
],
[
28.941881641000066,
41.02351116700004,
112.79859966330528
],
[
28.94203839000005,
41.023452957000075,
127.4816575961113
],
[
28.942159223000033,
41.02342076100007,
138.25499588296412
],
[
28.942409312000052,
41.02334827100003,
160.7767733940363
],
[
28.942554891000043,
41.02330823900007,
173.8028816283226
],
[
28.942614201000026,
41.023300508000034,
178.86450772356986
],
[
28.942762112000025,
41.02328513200007,
191.4213545176983
],
[
28.942946662000054,
41.02326595400007,
207.0884117618799
],
[
28.94321419700003,
41.02324425200004,
229.7183590401411
],
[
28.943360877000032,
41.02327260900006,
242.4505192444086
],
[
28.943527392000078,
41.02315257600003,
261.785155538702
],
[
28.944292810000036,
41.02262565700005,
348.782329638958
],
[
28.944496771000047,
41.022460272000046,
373.9142417566538
],
[
28.944806895000056,
41.02222784200006,
410.610674140954
],
[
28.944907735000072,
41.022125215000074,
424.81735989904405
],
[
28.945831854000062,
41.02123517000007,
550.5601331890822
],
[
28.94587874000007,
41.021187773000065,
557.1371381732225
],
[
28.94590018300005,
41.021166324000035,
560.1248536291838
],
[
28.946358178000025,
41.02070678600006,
624.0648599075317
],
[
28.946422706000078,
41.02064434700003,
632.8704501055956
],
[
28.946695658000067,
41.020372208000026,
670.8236117659569
],
[
28.946952278000026,
41.02012243000007,
705.970789120984
],
[
28.94732027200007,
41.01976111400006,
756.647114275837
],
[
28.94739118700005,
41.01969422900004,
766.1734178473234
],
[
28.947462986000062,
41.01961834700006,
776.540884795189
],
[
28.947842021000042,
41.01923685600008,
829.562431202364
],
[
28.948061438000025,
41.01901601800006,
860.2556696117878
],
[
28.94825508100007,
41.01882419100008,
887.0719117404699
],
[
28.94860503900003,
41.018477605000044,
935.5272403545856
],
[
28.948673255000074,
41.01841380400003,
944.6444263098716
],
[
28.94950282700006,
41.01759746700003,
1059.045882778883
],
[
28.949630212000045,
41.01748224800008,
1075.7351499141216
],
[
28.949710767000056,
41.01740912400004,
1086.3113600269317
],
[
28.949855145000072,
41.01730080800007,
1103.4044757295846
],
[
28.94987778600006,
41.01727949900004,
1106.4420462722778
],
[
28.949913553000044,
41.01725305100007,
1110.6465240582704
],
[
28.95009469200005,
41.01710903700007,
1132.7356537022351
],
[
28.950292839000042,
41.01695402200005,
1156.6969779778958
],
[
28.95033002200006,
41.01691802400006,
1161.7727483922959
],
[
28.950388559000032,
41.01688891400005,
1167.6628957544565
],
[
28.950632703000053,
41.01672533100003,
1195.080998544693
],
[
28.951084364000053,
41.016450304000045,
1243.8271025830031
],
[
28.95115008500005,
41.016405880000036,
1251.2365183054446
],
[
28.951235030000078,
41.01634362200008,
1261.1791410199166
],
[
28.95162938900006,
41.01614460800005,
1301.0389980570078
],
[
28.951760984000032,
41.016069267000034,
1314.9144339375973
],
[
28.95271210900006,
41.015532062000034,
1414.7133646686316
],
[
28.953085740000063,
41.015320435000035,
1453.9571750546693
],
[
28.953467020000062,
41.01507963300003,
1495.7151586541177
],
[
28.953585212000064,
41.01501347200008,
1508.0774104413033
],
[
28.953961065000044,
41.014816290000056,
1546.5358167756797
],
[
28.954353956000034,
41.01461714700008,
1586.3015914846897
],
[
28.95442666200006,
41.014558229000045,
1595.2578302482843
],
[
28.954658788000074,
41.01441394200003,
1620.5167504081726
],
[
28.954661006000038,
41.014412563000064,
1620.7580408960105
],
[
28.954881948000036,
41.01428713900003,
1643.9833671015501
],
[
28.955442315000028,
41.013974579000035,
1702.5214662816047
],
[
28.955866977000028,
41.01373386900008,
1747.1378376514435
],
[
28.95603552800003,
41.013622843000064,
1765.92737943027
],
[
28.95625829900007,
41.013489793000076,
1789.791065654826
],
[
28.956423664000056,
41.013392244000045,
1807.4220779777766
],
[
28.95666664600003,
41.01330056200004,
1830.2568746541738
],
[
28.956875007000065,
41.01325225700003,
1848.5863359338998
],
[
28.957034388000068,
41.01320417200003,
1863.0175970937014
],
[
28.957362244000024,
41.01305598500005,
1895.1332073669435
],
[
28.957701864000057,
41.01290406000004,
1928.311716662717
],
[
28.958847422000076,
41.01239215500004,
2040.194342785883
],
[
28.959128725000028,
41.012268636000044,
2067.545815914273
],
[
28.95957832600004,
41.01212645800007,
2108.5297524113894
],
[
28.959854137000036,
41.01200472100004,
2135.3824745022057
],
[
28.96004387000005,
41.011903208000035,
2154.9227352916
],
[
28.960209509000038,
41.01178764600007,
2173.8660303781035
],
[
28.960423453000033,
41.01160048600008,
2201.3597286646605
],
[
28.96075126200003,
41.01133043400006,
2242.100710631347
],
[
28.96112561900003,
41.01102295000004,
2288.5522551329136
],
[
28.961289126000054,
41.01088343300006,
2309.270557854271
],
[
28.961329068000055,
41.01085597800005,
2313.8077044834376
],
[
28.961435607000055,
41.01078120200003,
2326.02573839345
],
[
28.961575348000054,
41.010705924000035,
2340.4504860700367
],
[
28.96173844200007,
41.01065786700008,
2355.171705922222
],
[
28.96186203800005,
41.01064097100004,
2365.736728818655
],
[
28.96205814500007,
41.01064273800006,
2382.2347831218244
],
[
28.962491545000034,
41.01067365100005,
2418.854416013932
],
[
28.96303340000003,
41.010705535000056,
2464.573417445278
],
[
28.96341137400003,
41.01071793600005,
2496.3989362225293
],
[
28.96393812200006,
41.01071816800004,
2540.7098078147887
],
[
28.96421868500005,
41.01075447900007,
2564.653217538333
]
]
]
}
}
]
},
"directions": [
{
"routeId": 1,
"routeName": "Location 1 - Location 2",
"hasM": true,
"summary": {
"totalLength": 2564.653217538338,
"totalTime": 0,
"totalDriveTime": 0,
"envelope": {
"xmin": 28.94090634344729,
"ymin": 41.01039454153037,
"xmax": 28.964252470395213,
"ymax": 41.02429609202879,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
}
},
"features": [
{
"attributes": {
"length": 0,
"time": 0,
"text": "Start at Location 1",
"ETA": -2209161600000,
"maneuverType": "esriDMTDepart"
},
"compressedGeometry": "+0+1+2+1h85eh+1chfqmh+1v4kuek+0+0|+9+0+0"
},
{
"attributes": {
"length": 49.764204489945804,
"time": 0,
"text": "Go southeast on Eski Alipaşa Cad. toward Ahşap Minare Sk.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1chfqmh+1v4kuek+18l-1bm+nn-18j+4e4-6kd+2gi-3tf+1vo-3iq+ok-1i9+lb-23n|+9+0+11+s+4j+2m+2e+11+1b"
},
{
"attributes": {
"length": 192.6863147544742,
"time": 0,
"text": "Turn left on Altay Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTTurnLeft"
},
"compressedGeometry": "+0+1+2+1h85eh+1chg73a+1v4k9vl+i7f-2ai+hfm-66a+7sv-2tv+631-1jv+cjl-3l0+7av-20j+2vn-cf+7en-or+99s-uu+dfq-131+7cn+1dp|+9+e0+8l+92+44+31+6b+3l+1e+3h+4d+6b+3j"
},
{
"attributes": {
"length": 863.9915270278691,
"time": 0,
"text": "Turn right on Fevzipaşa Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTTurnRight"
},
"compressedGeometry": "+0+1+2+1h85eh+1chjldu+1v4jldo+8co-61o+16jd-qie+a96-8au+fkh-bn4+52o-55l+1ejh-1csh+2bm-2cg+12j-12k+n37-n5m+384-34p+doi-dn7+cu6-cj5+ihu-i75+3ie-3bu+3jt-3qg+j3o-j7n+b25-b4e+9oh-9lj+hkq-hfd+3e4-36v+19qt-195i+6dk-5pv+420-3m0+791-5er+14h-12c|+9+246+5e+of+72+aa+40+13c+1r+r+i0+2f+al+9t+e8+2m+2t+et+8k+7i+dk+2i+105+4n+2v+4q+r"
},
{
"attributes": {
"length": 479.8595452123918,
"time": 0,
"text": "Continue on Macar Kardeşler Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1chtu47+1v4a74s+1po-1am+94b-78e+9vq-7q6+1s0-1q4+2ug-1ev+ca1-881+mp0-drs+3a2-27n+493-34f+jsg-a17+6kd-3pj+1fv3-r32+ir1-ali+j7d-c4l+5uo-3ap+iuk-9u8+jq4-a1d|+9+9n6+16+67+6n+1e+1l+7n+dm+23+2q+b6+3t+s2+b2+bn+3g+aq+b6"
},
{
"attributes": {
"length": 221.12048649308392,
"time": 0,
"text": "Continue on 15 Temmuz Şehitleri Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1ci4vso+1v460rr+3lb-2v3+bml-78s+3j-28+b4j-6ae+s8e-fof+ldd-c4g+8g1-5j6+b7i-6mo+8as-4te|+9+du5+2g+74+2+6h+gf+ch+59+6n+4v"
},
{
"attributes": {
"length": 301.1076744336227,
"time": 0,
"text": "Continue on Şehzadebaşı Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1ci8898+1v4432r+c86-4jv+ag9-2dv+818-2dk+gh5-7f5+h45-7l7+1pou-pq7+e60-67b+mll-75f|+9+fsb+6d+55+42+91+9b+vf+7m+bh"
},
{
"attributes": {
"length": 180.02250272152676,
"time": 0,
"text": "Continue on Vezneciler Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1cid7cs+1v4237s+dt5-64g+9i8-53r+8bb-5qg+ap9-9e3+gh3-djr+is7-fg9|+9+ih1+7h+5g+5b+7n+bf+d2"
},
{
"attributes": {
"length": 276.1009624054238,
"time": 0,
"text": "Continue on Darülfünun Cad.",
"ETA": -2209161600000,
"maneuverType": "esriDMTStraight"
},
"compressedGeometry": "+0+1+2+1h85eh+1cifle7+1v40biq+87t-716+20f-1ca+5bu-3om+71h-3pg+878-2di+67f-r9+9sh+2s+lrg+1hs+rai+1jf+j21+k0+qi6+c+e4q+1qk|+9+k3l+5q+19+3e+42+45+2v+4k+aa+cr+8v+ce+6o"
},
{
"attributes": {
"length": 0,
"time": 0,
"text": "Finish at Location 2, on the right",
"ETA": -2209161600000,
"maneuverType": "esriDMTStop"
},
"compressedGeometry": "+0+1+2+1h85eh+1cikhed+1v3vu1g+0+0|+9+mha+0"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment