-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapSearchExamples.http
113 lines (102 loc) · 3.71 KB
/
MapSearchExamples.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
############################
# Address Search - General #
############################
###
# Search Address (obtain lat/lon)
# https://docs.microsoft.com/en-us/rest/api/maps/search/get-search-address#examples
# @name addrSearch
GET https://atlas.microsoft.com/search/address/json?subscription-key={{mapsSubscription}}
&api-version=1.0
&query=15127 NE 24th Street, Redmond, WA 98052
Ocp-Apim-Subscription-Key:{{mapsSubscription}}
############################
# Address Search - Lat/Lon #
############################
####
# Obtain the lat/lon from the search results above and use in this REST calls
@lat = {{addrSearch.response.body.results[0].position.lat}}
@lon = {{addrSearch.response.body.results[0].position.lon}}
###
# Search Lat/Lon (Obtain an address)
# Reversing the above by using the lat/lon returned and getting the address
# https://docs.microsoft.com/en-us/rest/api/maps/search/get-search-address-reverse#examples
# @name latLonSearch
GET https://atlas.microsoft.com/search/address/reverse/json?subscription-key={{mapsSubscription}}
&api-version=1.0
#&query=47.6308,-122.1385
&query={{lat}},{{lon}}
###############################
# Address Search - Structured #
###############################
###
# Search structured address (with spanish results)
# https://docs.microsoft.com/en-us/rest/api/maps/search/get-search-address-structured
# @name structAddSearch
GET https://atlas.microsoft.com/search/address/structured/json?subscription-key={{mapsSubscription}}
&api-version=1.0
&language=es-MX
&countryCode=US
&streetNumber=1
&streetName=Microsoft%20Way
&municipality=Redmond
&countrySubdivision=WA
&postalCode=98052
###############################
# Maps Tile ###################
###############################
GET https://atlas.microsoft.com/map/tile?api-version=2.1
#&tilesetId=microsoft.base.hybrid.darkgrey
&tilesetId=microsoft.base.hybrid.road
&zoom=6
&x=10
&y=22
&subscription-key={{mapsSubscription}}
#########
# Route #
#########
GET https://atlas.microsoft.com/route/directions/json?api-version=1.0
&subscription-key={{mapsSubscription}}
&query=52.50931,13.42936:52.50274,13.43872
&report=effectiveSettings
# &query={query}
# &maxAlternatives={maxAlternatives}
# &alternativeType={alternativeType}
# &minDeviationDistance={minDeviationDistance}
# &arriveAt={arriveAt}
# &departAt={departAt}
# &minDeviationTime={minDeviationTime}
# &instructionsType={instructionsType}
# &language={language}
# &computeBestOrder={computeBestOrder}
# &routeRepresentation={routeRepresentation}
# &computeTravelTimeFor={computeTravelTimeFor}
# &vehicleHeading={vehicleHeading}
# &report=effectiveSettings
# §ionType={sectionType}
# &vehicleAxleWeight={vehicleAxleWeight}
# &vehicleWidth={vehicleWidth}
# &vehicleHeight={vehicleHeight}
# &vehicleLength={vehicleLength}
# &vehicleMaxSpeed={vehicleMaxSpeed}
# &vehicleWeight={vehicleWeight}
# &vehicleCommercial={vehicleCommercial}
# &windingness={windingness}
# &hilliness={hilliness}
# &travelMode={travelMode}
# &avoid={avoid}
# &traffic={traffic}
# &routeType={routeType}
# &vehicleLoadType={vehicleLoadType}
# &vehicleEngineType={vehicleEngineType}
# &constantSpeedConsumptionInLitersPerHundredkm={constantSpeedConsumptionInLitersPerHundredkm}
# ¤tFuelInLiters={currentFuelInLiters}
# &auxiliaryPowerInLitersPerHour={auxiliaryPowerInLitersPerHour}
# &fuelEnergyDensityInMJoulesPerLiter={fuelEnergyDensityInMJoulesPerLiter}
# &accelerationEfficiency={accelerationEfficiency}
# &decelerationEfficiency={decelerationEfficiency}
# &uphillEfficiency={uphillEfficiency}
# &downhillEfficiency={downhillEfficiency}
# &constantSpeedConsumptionInkWhPerHundredkm={constantSpeedConsumptionInkWhPerHundredkm}
# ¤tChargeInkWh={currentChargeInkWh}
# &maxChargeInkWh={maxChargeInkWh}
# &auxiliaryPowerInkW={auxiliaryPowerInkW}