Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example TravelTime API response body using TimeMap
{
"results": [
{
"search_id": "public transport from Trafalgar Square",
"shapes": [
{
"shell": [
{
"lat": 51.516246,
"lng": -0.14439687999999948
},
{
"lat": 51.51714528,
"lng": -0.14349759999999945
},
{
"lat": 51.51804456,
"lng": -0.14349759999999945
},
{
"lat": 51.5184942,
"lng": -0.14304795999999942
},
{
"lat": 51.51714528,
"lng": -0.1416990399999994
},
{
"lat": 51.516246,
"lng": -0.1416990399999994
},
{
"lat": 51.51489708,
"lng": -0.14035011999999936
},
{
"lat": 51.515796359999996,
"lng": -0.13945083999999933
},
{
"lat": 51.515796359999996,
"lng": -0.1385515599999993
},
{
"lat": 51.51534672,
"lng": -0.13810191999999927
},
{
"lat": 51.51444744,
"lng": -0.13810191999999927
},
{
"lat": 51.5139978,
"lng": -0.13765227999999927
},
{
"lat": 51.51669564,
"lng": -0.13495443999999918
},
{
"lat": 51.51669564,
"lng": -0.13315587999999912
},
{
"lat": 51.51714528,
"lng": -0.13270623999999911
},
{
"lat": 51.51804456,
"lng": -0.13360551999999914
},
{
"lat": 51.51984312,
"lng": -0.13360551999999914
},
{
"lat": 51.52029276,
"lng": -0.13315587999999912
},
{
"lat": 51.52029276,
"lng": -0.13225659999999909
},
{
"lat": 51.51984312,
"lng": -0.13180695999999908
},
{
"lat": 51.51894384,
"lng": -0.13180695999999908
},
{
"lat": 51.5184942,
"lng": -0.13135731999999906
},
{
"lat": 51.5184942,
"lng": -0.12776019999999894
},
{
"lat": 51.515796359999996,
"lng": -0.12506235999999887
},
{
"lat": 51.515796359999996,
"lng": -0.12146523999999875
},
{
"lat": 51.516246,
"lng": -0.12101559999999874
},
{
"lat": 51.51714528,
"lng": -0.12101559999999874
},
{
"lat": 51.51759492,
"lng": -0.12056595999999872
},
{
"lat": 51.51759492,
"lng": -0.11876739999999866
},
{
"lat": 51.51669564,
"lng": -0.11786811999999863
},
{
"lat": 51.51669564,
"lng": -0.11427099999999853
},
{
"lat": 51.515796359999996,
"lng": -0.1133717199999985
},
{
"lat": 51.515796359999996,
"lng": -0.10977459999999839
},
{
"lat": 51.51759492,
"lng": -0.10797603999999833
},
{
"lat": 51.51354816,
"lng": -0.10392927999999821
},
{
"lat": 51.51309852,
"lng": -0.10437891999999821
},
{
"lat": 51.51309852,
"lng": -0.10617747999999827
},
{
"lat": 51.51219924,
"lng": -0.1070767599999983
},
{
"lat": 51.51219924,
"lng": -0.10977459999999839
},
{
"lat": 51.5117496,
"lng": -0.11022423999999839
},
{
"lat": 51.510850319999996,
"lng": -0.11022423999999839
},
{
"lat": 51.5095014,
"lng": -0.11157315999999845
},
{
"lat": 51.5095014,
"lng": -0.11427099999999853
},
{
"lat": 51.50905176,
"lng": -0.11472063999999854
},
{
"lat": 51.50860212,
"lng": -0.11427099999999853
},
{
"lat": 51.50860212,
"lng": -0.1133717199999985
},
{
"lat": 51.50815248,
"lng": -0.11292207999999848
},
{
"lat": 51.50455536,
"lng": -0.11292207999999848
},
{
"lat": 51.50365608,
"lng": -0.11202279999999845
},
{
"lat": 51.50320644,
"lng": -0.11247243999999847
},
{
"lat": 51.50410572,
"lng": -0.1133717199999985
},
{
"lat": 51.50410572,
"lng": -0.11786811999999863
},
{
"lat": 51.50365608,
"lng": -0.11831775999999866
},
{
"lat": 51.50320644,
"lng": -0.11786811999999863
},
{
"lat": 51.50320644,
"lng": -0.1169688399999986
},
{
"lat": 51.5027568,
"lng": -0.1165191999999986
},
{
"lat": 51.50185752,
"lng": -0.1165191999999986
},
{
"lat": 51.50140788,
"lng": -0.11606955999999857
},
{
"lat": 51.50140788,
"lng": -0.11517027999999856
},
{
"lat": 51.50230716,
"lng": -0.11427099999999853
},
{
"lat": 51.50230716,
"lng": -0.11247243999999847
},
{
"lat": 51.500958239999996,
"lng": -0.11112351999999842
},
{
"lat": 51.500508599999996,
"lng": -0.11157315999999845
},
{
"lat": 51.500508599999996,
"lng": -0.1133717199999985
},
{
"lat": 51.49960932,
"lng": -0.11427099999999853
},
{
"lat": 51.49960932,
"lng": -0.11606955999999857
},
{
"lat": 51.49781076,
"lng": -0.11786811999999863
},
{
"lat": 51.49871004,
"lng": -0.11876739999999866
},
{
"lat": 51.49871004,
"lng": -0.12146523999999875
},
{
"lat": 51.4982604,
"lng": -0.12191487999999877
},
{
"lat": 51.49646184,
"lng": -0.12191487999999877
},
{
"lat": 51.495562559999996,
"lng": -0.12281415999999878
},
{
"lat": 51.49466328,
"lng": -0.12281415999999878
},
{
"lat": 51.49331436,
"lng": -0.12416307999999884
},
{
"lat": 51.49331436,
"lng": -0.12596163999999888
},
{
"lat": 51.49421364,
"lng": -0.12686091999999893
},
{
"lat": 51.49421364,
"lng": -0.128659479999999
},
{
"lat": 51.49331436,
"lng": -0.129558759999999
},
{
"lat": 51.493764,
"lng": -0.13000839999999902
},
{
"lat": 51.495562559999996,
"lng": -0.13000839999999902
},
{
"lat": 51.49691148,
"lng": -0.13135731999999906
},
{
"lat": 51.49691148,
"lng": -0.13225659999999909
},
{
"lat": 51.49736112,
"lng": -0.13270623999999911
},
{
"lat": 51.49915968,
"lng": -0.13270623999999911
},
{
"lat": 51.500508599999996,
"lng": -0.13405515999999915
},
{
"lat": 51.500508599999996,
"lng": -0.13765227999999927
},
{
"lat": 51.50140788,
"lng": -0.1385515599999993
},
{
"lat": 51.50140788,
"lng": -0.13945083999999933
},
{
"lat": 51.50635392,
"lng": -0.14439687999999948
},
{
"lat": 51.5072532,
"lng": -0.14349759999999945
},
{
"lat": 51.50995104,
"lng": -0.14349759999999945
},
{
"lat": 51.510850319999996,
"lng": -0.14439687999999948
},
{
"lat": 51.51264888,
"lng": -0.14439687999999948
},
{
"lat": 51.51354816,
"lng": -0.1452961599999995
},
{
"lat": 51.51534672,
"lng": -0.1452961599999995
},
{
"lat": 51.516246,
"lng": -0.14439687999999948
}
],
"holes": []
},
{
"shell": [
{
"lat": 51.50230716,
"lng": -0.10977459999999839
},
{
"lat": 51.50365608,
"lng": -0.11112351999999842
},
{
"lat": 51.505005,
"lng": -0.10977459999999839
},
{
"lat": 51.50455536,
"lng": -0.10932495999999836
},
{
"lat": 51.5027568,
"lng": -0.10932495999999836
},
{
"lat": 51.50230716,
"lng": -0.10977459999999839
}
],
"holes": []
}
]
},
{
"search_id": "public transport to Trafalgar Square",
"shapes": [
{
"shell": [
{
"lat": 51.50187468,
"lng": -0.16315777999999906
},
{
"lat": 51.50232432000001,
"lng": -0.16360741999999906
},
{
"lat": 51.502773960000006,
"lng": -0.16315777999999906
},
{
"lat": 51.50052576,
"lng": -0.16090957999999894
},
{
"lat": 51.50007612,
"lng": -0.16135921999999897
},
{
"lat": 51.50187468,
"lng": -0.16315777999999906
}
],
"holes": []
},
{
"shell": [
{
"lat": 51.50187468,
"lng": -0.15596353999999868
},
{
"lat": 51.50232432000001,
"lng": -0.1564131799999987
},
{
"lat": 51.504122880000004,
"lng": -0.1564131799999987
},
{
"lat": 51.50457252,
"lng": -0.15596353999999868
},
{
"lat": 51.50457252,
"lng": -0.15506425999999865
},
{
"lat": 51.5054718,
"lng": -0.1541649799999986
},
{
"lat": 51.5054718,
"lng": -0.1523664199999985
},
{
"lat": 51.50457252,
"lng": -0.15146713999999845
},
{
"lat": 51.50502216,
"lng": -0.15101749999999844
},
{
"lat": 51.50592144,
"lng": -0.15101749999999844
},
{
"lat": 51.50637108,
"lng": -0.15056785999999842
},
{
"lat": 51.50637108,
"lng": -0.14966857999999839
},
{
"lat": 51.50682072,
"lng": -0.14921893999999836
},
{
"lat": 51.507720000000006,
"lng": -0.14921893999999836
},
{
"lat": 51.508169640000006,
"lng": -0.14876929999999833
},
{
"lat": 51.508169640000006,
"lng": -0.14697073999999824
},
{
"lat": 51.508619280000005,
"lng": -0.1465210999999982
},
{
"lat": 51.51131712,
"lng": -0.1465210999999982
},
{
"lat": 51.512666040000006,
"lng": -0.14787001999999827
},
{
"lat": 51.512666040000006,
"lng": -0.15146713999999845
},
{
"lat": 51.51176676,
"lng": -0.1523664199999985
},
{
"lat": 51.51176676,
"lng": -0.15326569999999856
},
{
"lat": 51.512666040000006,
"lng": -0.1541649799999986
},
{
"lat": 51.512666040000006,
"lng": -0.15686281999999874
},
{
"lat": 51.513565320000005,
"lng": -0.15776209999999877
},
{
"lat": 51.512666040000006,
"lng": -0.15866137999999883
},
{
"lat": 51.512666040000006,
"lng": -0.1604599399999989
},
{
"lat": 51.513115680000006,
"lng": -0.16090957999999894
},
{
"lat": 51.514014960000004,
"lng": -0.16090957999999894
},
{
"lat": 51.514464600000004,
"lng": -0.1604599399999989
},
{
"lat": 51.514464600000004,
"lng": -0.15506425999999865
},
{
"lat": 51.51536388,
"lng": -0.1541649799999986
},
{
"lat": 51.51536388,
"lng": -0.15146713999999845
},
{
"lat": 51.518061720000006,
"lng": -0.14876929999999833
},
{
"lat": 51.518061720000006,
"lng": -0.14697073999999824
},
{
"lat": 51.518511360000005,
"lng": -0.1465210999999982
},
{
"lat": 51.519410640000004,
"lng": -0.1465210999999982
},
{
"lat": 51.51986028,
"lng": -0.14607145999999818
},
{
"lat": 51.51986028,
"lng": -0.14517217999999815
},
{
"lat": 51.52030992,
"lng": -0.14472253999999812
},
{
"lat": 51.523007760000006,
"lng": -0.14472253999999812
},
{
"lat": 51.523457400000005,
"lng": -0.1442728999999981
},
{
"lat": 51.523007760000006,
"lng": -0.14382325999999807
},
{
"lat": 51.52210848000001,
"lng": -0.14382325999999807
},
{
"lat": 51.52075956,
"lng": -0.142474339999998
},
{
"lat": 51.52075956,
"lng": -0.14157505999999798
},
{
"lat": 51.52030992,
"lng": -0.14112541999999795
},
{
"lat": 51.519410640000004,
"lng": -0.14112541999999795
},
{
"lat": 51.518511360000005,
"lng": -0.14202469999999798
},
{
"lat": 51.518061720000006,
"lng": -0.14157505999999798
},
{
"lat": 51.518061720000006,
"lng": -0.13977649999999786
},
{
"lat": 51.51716244000001,
"lng": -0.13887721999999783
},
{
"lat": 51.51716244000001,
"lng": -0.1379779399999978
},
{
"lat": 51.51626316,
"lng": -0.13707865999999774
},
{
"lat": 51.51626316,
"lng": -0.13528009999999766
},
{
"lat": 51.518061720000006,
"lng": -0.13348153999999757
},
{
"lat": 51.51716244000001,
"lng": -0.1325822599999975
},
{
"lat": 51.51716244000001,
"lng": -0.13168297999999745
},
{
"lat": 51.517612080000006,
"lng": -0.13123333999999745
},
{
"lat": 51.519410640000004,
"lng": -0.13123333999999745
},
{
"lat": 51.51986028,
"lng": -0.13168297999999745
},
{
"lat": 51.51986028,
"lng": -0.1325822599999975
},
{
"lat": 51.52030992,
"lng": -0.13303189999999754
},
{
"lat": 51.523007760000006,
"lng": -0.13303189999999754
},
{
"lat": 51.523457400000005,
"lng": -0.13348153999999757
},
{
"lat": 51.523457400000005,
"lng": -0.13528009999999766
},
{
"lat": 51.524356680000004,
"lng": -0.13617937999999769
},
{
"lat": 51.524356680000004,
"lng": -0.1379779399999978
},
{
"lat": 51.52480632,
"lng": -0.1384275799999978
},
{
"lat": 51.5257056,
"lng": -0.1384275799999978
},
{
"lat": 51.52615524,
"lng": -0.1379779399999978
},
{
"lat": 51.52615524,
"lng": -0.13707865999999774
},
{
"lat": 51.52525596,
"lng": -0.13617937999999769
},
{
"lat": 51.52525596,
"lng": -0.1325822599999975
},
{
"lat": 51.523907040000005,
"lng": -0.13123333999999745
},
{
"lat": 51.52210848000001,
"lng": -0.13123333999999745
},
{
"lat": 51.52075956,
"lng": -0.1298844199999974
},
{
"lat": 51.52075956,
"lng": -0.12898513999999733
},
{
"lat": 51.52030992,
"lng": -0.1285354999999973
},
{
"lat": 51.519410640000004,
"lng": -0.1285354999999973
},
{
"lat": 51.518961000000004,
"lng": -0.12808585999999728
},
{
"lat": 51.518961000000004,
"lng": -0.12718657999999725
},
{
"lat": 51.51986028,
"lng": -0.1262872999999972
},
{
"lat": 51.518961000000004,
"lng": -0.12538801999999716
},
{
"lat": 51.518961000000004,
"lng": -0.1244887399999971
},
{
"lat": 51.519410640000004,
"lng": -0.12403909999999709
},
{
"lat": 51.52030992,
"lng": -0.12403909999999709
},
{
"lat": 51.52075956,
"lng": -0.12358945999999707
},
{
"lat": 51.51986028,
"lng": -0.12269017999999701
},
{
"lat": 51.51986028,
"lng": -0.12089161999999692
},
{
"lat": 51.52075956,
"lng": -0.11999233999999688
},
{
"lat": 51.52075956,
"lng": -0.11819377999999679
},
{
"lat": 51.52030992,
"lng": -0.11774413999999676
},
{
"lat": 51.519410640000004,
"lng": -0.11774413999999676
},
{
"lat": 51.518961000000004,
"lng": -0.11729449999999675
},
{
"lat": 51.518961000000004,
"lng": -0.11459665999999662
},
{
"lat": 51.518511360000005,
"lng": -0.11414701999999659
},
{
"lat": 51.517612080000006,
"lng": -0.11504629999999663
},
{
"lat": 51.5167128,
"lng": -0.11504629999999663
},
{
"lat": 51.51626316,
"lng": -0.11459665999999662
},
{
"lat": 51.51626316,
"lng": -0.11369737999999656
},
{
"lat": 51.5167128,
"lng": -0.11324773999999654
},
{
"lat": 51.518511360000005,
"lng": -0.11324773999999654
},
{
"lat": 51.51986028,
"lng": -0.11189881999999647
},
{
"lat": 51.51986028,
"lng": -0.11010025999999638
},
{
"lat": 51.52075956,
"lng": -0.10920097999999634
},
{
"lat": 51.51626316,
"lng": -0.10470457999999612
},
{
"lat": 51.51626316,
"lng": -0.10290601999999602
},
{
"lat": 51.513115680000006,
"lng": -0.09975853999999587
},
{
"lat": 51.512666040000006,
"lng": -0.10020817999999589
},
{
"lat": 51.512666040000006,
"lng": -0.10380529999999608
},
{
"lat": 51.51176676,
"lng": -0.10470457999999612
},
{
"lat": 51.51176676,
"lng": -0.10650313999999621
},
{
"lat": 51.5099682,
"lng": -0.1083016999999963
},
{
"lat": 51.5099682,
"lng": -0.10920097999999634
},
{
"lat": 51.509518560000004,
"lng": -0.10965061999999637
},
{
"lat": 51.508619280000005,
"lng": -0.10965061999999637
},
{
"lat": 51.508169640000006,
"lng": -0.10920097999999634
},
{
"lat": 51.508169640000006,
"lng": -0.10740241999999625
},
{
"lat": 51.507720000000006,
"lng": -0.10695277999999622
},
{
"lat": 51.50682072,
"lng": -0.10785205999999627
},
{
"lat": 51.50592144,
"lng": -0.10785205999999627
},
{
"lat": 51.5054718,
"lng": -0.10740241999999625
},
{
"lat": 51.5054718,
"lng": -0.10650313999999621
},
{
"lat": 51.50502216,
"lng": -0.10605349999999618
},
{
"lat": 51.50142504,
"lng": -0.10605349999999618
},
{
"lat": 51.50052576,
"lng": -0.10515421999999613
},
{
"lat": 51.498727200000005,
"lng": -0.10515421999999613
},
{
"lat": 51.497827920000006,
"lng": -0.10425493999999609
},
{
"lat": 51.49602936,
"lng": -0.10425493999999609
},
{
"lat": 51.49468044,
"lng": -0.10560385999999616
},
{
"lat": 51.49602936,
"lng": -0.10695277999999622
},
{
"lat": 51.49692864,
"lng": -0.10605349999999618
},
{
"lat": 51.497827920000006,
"lng": -0.10605349999999618
},
{
"lat": 51.498277560000005,
"lng": -0.10650313999999621
},
{
"lat": 51.498277560000005,
"lng": -0.10740241999999625
},
{
"lat": 51.49737828000001,
"lng": -0.1083016999999963
},
{
"lat": 51.49737828000001,
"lng": -0.11010025999999638
},
{
"lat": 51.496479,
"lng": -0.11099953999999643
},
{
"lat": 51.496479,
"lng": -0.1163952199999967
},
{
"lat": 51.49737828000001,
"lng": -0.11729449999999675
},
{
"lat": 51.49737828000001,
"lng": -0.12269017999999701
},
{
"lat": 51.49692864,
"lng": -0.12313981999999704
},
{
"lat": 51.49602936,
"lng": -0.12313981999999704
},
{
"lat": 51.49557972,
"lng": -0.12269017999999701
},
{
"lat": 51.49557972,
"lng": -0.12179089999999697
},
{
"lat": 51.496479,
"lng": -0.12089161999999692
},
{
"lat": 51.49602936,
"lng": -0.1204419799999969
},
{
"lat": 51.493331520000005,
"lng": -0.12313981999999704
},
{
"lat": 51.49153296,
"lng": -0.12313981999999704
},
{
"lat": 51.488385480000005,
"lng": -0.1262872999999972
},
{
"lat": 51.488385480000005,
"lng": -0.12808585999999728
},
{
"lat": 51.488835120000005,
"lng": -0.1285354999999973
},
{
"lat": 51.4897344,
"lng": -0.1285354999999973
},
{
"lat": 51.49018404,
"lng": -0.12898513999999733
},
{
"lat": 51.4897344,
"lng": -0.12943477999999736
},
{
"lat": 51.488835120000005,
"lng": -0.12943477999999736
},
{
"lat": 51.488385480000005,
"lng": -0.1298844199999974
},
{
"lat": 51.4897344,
"lng": -0.13123333999999745
},
{
"lat": 51.49243224000001,
"lng": -0.13123333999999745
},
{
"lat": 51.492881880000006,
"lng": -0.13168297999999745
},
{
"lat": 51.492881880000006,
"lng": -0.1325822599999975
},
{
"lat": 51.493781160000005,
"lng": -0.13348153999999757
},
{
"lat": 51.493781160000005,
"lng": -0.13887721999999783
},
{
"lat": 51.4919826,
"lng": -0.14067577999999792
},
{
"lat": 51.492881880000006,
"lng": -0.14157505999999798
},
{
"lat": 51.492881880000006,
"lng": -0.14337361999999806
},
{
"lat": 51.493331520000005,
"lng": -0.14382325999999807
},
{
"lat": 51.49513008,
"lng": -0.14382325999999807
},
{
"lat": 51.49557972,
"lng": -0.1442728999999981
},
{
"lat": 51.49557972,
"lng": -0.14607145999999818
},
{
"lat": 51.49737828000001,
"lng": -0.14787001999999827
},
{
"lat": 51.49737828000001,
"lng": -0.14966857999999839
},
{
"lat": 51.499176840000004,
"lng": -0.15146713999999845
},
{
"lat": 51.499176840000004,
"lng": -0.1541649799999986
},
{
"lat": 51.49962648,
"lng": -0.15461461999999862
},
{
"lat": 51.50142504,
"lng": -0.15461461999999862
},
{
"lat": 51.50187468,
"lng": -0.15506425999999865
},
{
"lat": 51.50187468,
"lng": -0.15596353999999868
}
],
"holes": [
[
{
"lat": 51.50052576,
"lng": -0.14742037999999824
},
{
"lat": 51.50007612,
"lng": -0.14697073999999824
},
{
"lat": 51.50007612,
"lng": -0.14607145999999818
},
{
"lat": 51.49962648,
"lng": -0.14562181999999818
},
{
"lat": 51.498727200000005,
"lng": -0.1465210999999982
},
{
"lat": 51.497827920000006,
"lng": -0.1465210999999982
},
{
"lat": 51.49737828000001,
"lng": -0.14607145999999818
},
{
"lat": 51.49737828000001,
"lng": -0.14517217999999815
},
{
"lat": 51.497827920000006,
"lng": -0.14472253999999812
},
{
"lat": 51.49962648,
"lng": -0.14472253999999812
},
{
"lat": 51.50007612,
"lng": -0.1442728999999981
},
{
"lat": 51.50007612,
"lng": -0.14337361999999806
},
{
"lat": 51.50142504,
"lng": -0.14202469999999798
},
{
"lat": 51.50187468,
"lng": -0.142474339999998
},
{
"lat": 51.50187468,
"lng": -0.14337361999999806
},
{
"lat": 51.503673240000005,
"lng": -0.14517217999999815
},
{
"lat": 51.503673240000005,
"lng": -0.14697073999999824
},
{
"lat": 51.503223600000005,
"lng": -0.14742037999999824
},
{
"lat": 51.50052576,
"lng": -0.14742037999999824
}
],
[
{
"lat": 51.50187468,
"lng": -0.14067577999999792
},
{
"lat": 51.50142504,
"lng": -0.14112541999999795
},
{
"lat": 51.50052576,
"lng": -0.14112541999999795
},
{
"lat": 51.50007612,
"lng": -0.14067577999999792
},
{
"lat": 51.50007612,
"lng": -0.1379779399999978
},
{
"lat": 51.50052576,
"lng": -0.13752829999999777
},
{
"lat": 51.5009754,
"lng": -0.1379779399999978
},
{
"lat": 51.5009754,
"lng": -0.13887721999999783
},
{
"lat": 51.50187468,
"lng": -0.13977649999999786
},
{
"lat": 51.50187468,
"lng": -0.14067577999999792
}
]
]
},
{
"shell": [
{
"lat": 51.49557972,
"lng": -0.10020817999999589
},
{
"lat": 51.49513008,
"lng": -0.09975853999999587
},
{
"lat": 51.493781160000005,
"lng": -0.10110745999999593
},
{
"lat": 51.49602936,
"lng": -0.10335565999999605
},
{
"lat": 51.49737828000001,
"lng": -0.10200673999999597
},
{
"lat": 51.49557972,
"lng": -0.10020817999999589
}
],
"holes": []
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.