Berechnen Sie eine Entfernungsmatrix – Bing Maps (2023)

  • Artikel

Die Bing Maps Distance Matrix API stellt Reisezeit und Entfernungen für eine Reihe von Start- und Zielorten bereit. Die zurückgegebenen Entfernungen und Zeiten basieren auf den von der Bing Maps Route API berechneten Routen. Die Zeiten basieren auf vorausschauenden Verkehrsinformationen, abhängig von der in der Anfrage angegebenen Startzeit. Entfernungsmatrizen können für Auto-, Fuß- und öffentliche Verkehrsmittel berechnet werden. Diese API kann auch Entfernungsmatrizen generieren, die optional ein Histogramm der Reisezeiten über einen bestimmten Zeitraum mit einem festgelegten Intervall enthalten, das den prognostizierten Verkehr zu diesen Zeiten berücksichtigt.

Distanzmatrizen werden in verschiedenen Anwendungsbereichen verwendet. Am gebräuchlichsten sind Power-Algorithmen, die das Problem lösenProblem des Handlungsreisenden (TSP)UndFahrzeugroutingproblem (VRP). Einige andere häufige Anwendungen sind:

  • Sortierung der Suchergebnisse nach ihrer tatsächlichen Reiseentfernung oder -zeit.
  • Bestimmen Sie die Ankunftszeiten anhand der Reisezeiten.
  • Berechnen Sie den Unterschied in den Pendelzeiten zwischen Standorten. Beispiel: Wir möchten in ein neues Büro umziehen. Welche Auswirkungen hat dies auf die Pendelzeiten unserer Mitarbeiter?
  • Clustering von Daten basierend auf Reisezeit und Entfernungen. Beispiel: Finden Sie alle Häuser, die sich im Umkreis von 1,6 Kilometern um einen Tante-Emma-Laden befinden.

Wenn Sie eine Anfrage stellen, indem Sie eine der folgenden Möglichkeiten nutzenURL-Vorlagen, gibt die Antwort eine Distanzmatrix-Ressource zurück, die entweder ein Array von Distanzmatrix-Zellen oder Informationen über die asynchrone Anforderung enthält, die zur Berechnung einer Distanzmatrix gestellt wurde. Jede Entfernungsmatrixzelle enthält den Standort und den Index des Ursprungs und Ziels, auf den sie sich bezieht, die Reisezeit und die Entfernung. Wenn ein Distanzmatrix-Histogramm angefordert wird, wird eine Abfahrtszeit für die Zelle im Histogramm einbezogen, auf die es sich bezieht. Weitere Informationen zur Distanzmatrix-Ressource finden Sie unterDistanzmatrixdaten. Sie können die Beispiel-URL und Antwortwerte auch im anzeigenBeispieleAbschnitt.

Informationen zur geografischen Verfügbarkeit zum Berechnen einer Entfernungsmatrix finden Sie im folgenden Parameter „travelMode“.

API-Grenzwerte

Anfragen an die Distanzmatrix-API können auf zwei Arten erfolgen:

  • Die meisten Anfragen können mit einer einfachen synchronen GET- oder POST-Anfrage gestellt werden.

Für den Reisemodus „Fahren“ kann eine Entfernungsmatrix mit bis zu 2.500 Ursprungs-Ziel-Paaren für Basic Bing Maps-Konten angefordert werden, während für Enterprise Bing Maps-Konten die Grenze für Ursprungs-Ziel-Paare bei 10.000 liegt. Für den Reisemodus „ÖPNV“ und „Gehen“ eine Entfernungsmatrix Das mit bis zu 650 Ursprungs-Ziel-Paaren kann für alle Bing Maps-Kontotypen angefordert werden. Paare werden berechnet, indem die Anzahl der Ursprünge mit der Anzahl der Ziele multipliziert wird. Beispielsweise können 10.000 Start-Ziel-Paare erreicht werden, wenn in Ihrer Anfrage 1 Startpunkt und 10.000 Ziele oder 100 Startpunkte und 100 Ziele definiert sind.

  • Komplexere fahrbezogene Anfragen, deren Verarbeitung länger dauert, wie z. B. die Berechnung eines Histogramms der Fahrzeiten und Entfernungen für jede Zelle einer Matrix, können durch eine asynchrone Distanzmatrix-Anfrage gestellt werden. Diese Art von Anfrage wird nur akzeptiert, wenn der Reisemodus auf Fahren eingestellt ist und eine Startzeit angegeben wurde.

Ein Histogramm der Reisezeiten und Entfernungen kann angefordert werden, ist jedoch auf eine Entfernungsmatrix beschränkt, die maximal 2.500 Ursprungs-Ziel-Paare für Basic Bing Maps-Konten aufweist. Für Enterprise Bing Maps-Konten liegt die Grenze bei der Anfrage bei 40.000 Ursprungs-Ziel-Paaren asynchron erstellt. Das maximale Zeitintervall zwischen der Start- und Endzeit bei der Berechnung eines Distanzmatrix-Histogramms beträgt 7 Tage.

Wann sollten synchrone oder asynchrone Anforderungen verwendet werden?

Machen Sie eine synchrone Anfrage, wenn der Reisemodus Fahren, Gehen oder Transit ist und:

  • Die Gesamtzahl der Ursprungs-Ziel-Paare ist kleiner oder gleich 2.500 für Basic-Konten oder 10.000 für Enterprise-Bing Maps-Konten und es wird keine Startzeit angegeben, wenn der Reisemodus „Fahren“ ist, oder kleiner oder gleich 650 für alle Bing Maps-Konten, wenn der Reisemodus aktiviert ist ist zu Fuß oder auf der Durchreise.

oder

  • Der Reisemodus dient dem Autofahren, die Anzahl der Start-Ziel-Paare ist kleiner oder gleich 2.500 für Basic-Konten oder 10.000 für Enterprise-Bing Maps-Konten und es ist eine Startzeit, aber keine Endzeit angegeben. Dadurch wird einfach eine einzelne Zelle für jedes Ursprungs-Ziel-Paar zurückgegeben, das anhand prädiktiver Verkehrsdaten berechnet wird.

Stellen Sie eine asynchrone Anfrage, wenn der Reisemodus Fahren ist und:

  • Eine Startzeit und eine Endzeit sind angegeben und die Gesamtzahl der Ursprungs-Ziel-Paare ist kleiner oder gleich 2.500 für Basic-Konten oder 40.000 für Enterprise-Bing Maps-Konten und es ist keine Startzeit angegeben.

Wenn Ihr Szenario keinem der oben beschriebenen Parameter für synchrone und asynchrone Anfragen entspricht, müssen Sie Ihre Anfrage in kleinere Teile aufteilen. Beachten Sie, dass Transaktionen auf der Gesamtzahl der Zellen in der resultierenden Matrix und nicht auf der Anzahl der Anforderungen basieren. Daher würde die gleiche Anzahl an Transaktionen generiert, wenn Sie zwei Anforderungen stellen, die jeweils 100 Zellen generieren, oder eine Anforderung, die 200 Zellen generiert.

So funktionieren asynchrone Anfragen

SehenDokumentation zu asynchronen Anforderungen.

So berechnen Sie die Anzahl der Zellen, die eine Antwort haben wird

Bei der Berechnung einer einfachen Distanzmatrix erzeugt jedes Ursprungs-Ziel-Paar eine einzelne Zelle in der Matrix.

Berechnen Sie eine Entfernungsmatrix – Bing Maps (1)

Beispielsweise generiert eine Matrix mit 2 Ursprüngen und 5 Zielen 10 Zellen, wobei 2 * 5 = 10.

Wenn eine Matrix ein Histogramm enthält, verfügt jedes Ursprungs-Ziel-Paar für jedes Zeitintervall über eine Zelle in der Matrix. Die Anzahl der Zeitintervalle, die eine Anfrage haben wird, hängt von der Auflösung sowie den Start- und Endzeiten ab.

(Video) Add-In in Excel: Auf Bing Maps Deine Werte auf einer Landkarte anzeigen lassen – so geht’s!

Berechnen Sie eine Entfernungsmatrix – Bing Maps (2)

Beispielsweise generiert eine Matrix, die zwei Ursprünge und fünf Ziele hat und Zeitintervalle in 15-Minuten-Schritten (Auflösung = 1) über 24 Stunden abruft, 960 Zellen, wobei 2 * 5 * 24/0,25 = 2 * 5 * 24 * 4 = 960.

Notiz

Für Ursprungs-Ziel-Paare mit demselben Index und derselben Koordinate werden keine Zellen generiert. Diese werden nicht in die Transaktionszählung einbezogen. Wenn diese in Ihrer Abfrage vorhanden sind, können Sie diese von der oben berechneten Anzahl von Zellen subtrahieren, um eine genauere Zahl für die Schätzung der Transaktionsanzahl zu erhalten.

So berechnen Sie die Gesamtzahl der abrechenbaren Transaktionen, die eine Anfrage generiert

Für alle 4 Zellen in einer Matrix wird eine abrechenbare Transaktion generiert und auf die nächste ganze Zahl aufgerundet. Für eine einfache Matrix werden abrechenbare Transaktionen anhand der folgenden Formel berechnet:

Berechnen Sie eine Entfernungsmatrix – Bing Maps (3)

Beispielsweise generiert eine Matrix mit zwei Ursprüngen und fünf Zielen drei abrechenbare Transaktionen, wobei Obergrenze (0,25 * 2 * 5) = 3 ist.

Bei der Berechnung einer Matrix, die ein Histogramm enthält, werden nur die ersten 30 Zeitintervalle in jedem Ursprungs-Ziel-Paar für abrechenbare Transaktionen gezählt, alle weiteren Zeitintervalle werden kostenlos zur Verfügung gestellt.

Berechnen Sie eine Entfernungsmatrix – Bing Maps (4)

Beispielsweise generiert eine Matrix, die 2 Ursprünge und 5 Ziele hat und Zeitintervalle in 15-Minuten-Schritten (Auflösung = 1) über 24 Stunden abruft, 75 Zellen, wobei Ceiling(0,25 * 2 * 5 * Min(30, 24/0,25 )) = Decke(0,25 * 2 * 5 * Min(30, 96)) = Decke(0,25 * 2 * 5 *30) = 75. Beachten Sie, dass 24/0,25 = 24 * 4 = 96, aber da nur die ersten Inkremente pro Ursprungs-Ziel-Paar für die abrechenbare Transaktion gezählt werden, werden 66 Zeitintervalle pro Ursprungs-Ziel-Paar von der Transaktionsberechnung ausgeschlossen, wodurch Einsparungen entstehen Sie erhalten in diesem Szenario insgesamt 165 abrechenbare Transaktionen.

Unterstützte HTTP-Methoden

GET, POST

Bei POST-Anfragen müssen alle Parameter als JSON-Objekt an den Hauptteil der Anfrage übergeben werden. Diese API istCORs aktiviert.

Wann sollte HTTP GET vs. POST verwendet werden?

Viele Entwickler bevorzugen die Einfachheit von HTTP-GET-Anfragen, die lediglich die Generierung einer URL erfordern. Browser und Server haben jedoch Beschränkungen hinsichtlich der maximalen Länge von URLs. Normalerweise ist es am besten, die Länge Ihrer URLs auf weniger als 2083 Zeichen zu beschränken. Vor diesem Hintergrund wird empfohlen, HTTP-GET-Anfragen nur zu verwenden, wenn Ihre Anfrage insgesamt weniger als 50 Ursprünge und Ziele hat.

URL-Vorlagen

Notiz

Diese Vorlagen unterstützen sowohl HTTP- als auch HTTPS-Protokolle. Um diese API verwenden zu können, benötigen Sie eineBing Maps-Schlüssel.

Anforderungs-URL für synchrone Distanzmatrix (GET)

(Video) Entfernungsrechner mit Excel und Google Maps API

Ruft mithilfe einer HTTP-GET-Anfrage eine einfache Entfernungsmatrix für eine Reihe von Start- und Zielorten ab.

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins={lat0,long0;lat1,lon1;latM,lonM}&destinations={lat0,lon0;lat1,lon1;latN,longN}&travelMode= {travelMode}&startTime={startTime}&timeUnit={timeUnit}&key={BingMapsKey}

Spitze

Beim Abrufen einer Transitmatrix (Entfernungsmatrix mittravelMode=transit), gibt es einige Dinge zu beachten:

  • Es werden bis zu 3 Transitstrecken (2 Transfers) unterstützt, außer im Vereinigten Königreich, wo bis zu 5 Transitstrecken (4 Transfers) unterstützt werden.
  • Die bei der Routenberechnung verwendete gesamte Gehstrecke ist auf 0,62 Meilen (1 km) begrenzt.

Die geschätzte Routendauer kann zwischen den Ergebnissen der Entfernungsmatrix-API und der Verwendung abweichenBing-Karten. Dies liegt daran, dass es bei Bing Maps keine Beschränkung hinsichtlich der Anzahl der Transitabschnitte gibt und die gesamte Gehstrecke, die bei der Berechnung einer Route in Bing Maps verwendet wird, im Allgemeinen bis zu 1,55 Meilen (2,5 km) und in einigen Fällen sogar bis zu 3,1 Meilen beträgt ( 5 km) im Gegensatz zu 0,62 Meilen (1 km) bei Verwendung der Distanzmatrix-API.

Synchronous Distance Matrix-Anfrage-URL (POST)

Ruft mithilfe einer HTTP-POST-Anfrage eine einfache Entfernungsmatrix für eine Reihe von Start- und Zielorten ab.

HTTP-POST-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?key={BingMapsKey}

POST-Header

Inhaltslänge: insertLengthOfHTTPBodyContent-Type: application/json

POST-Körper

{ "origins": [{ "latitude": lat0, "longitude": lon0 }, { "latitude": latM, "longitude": lonM }], "destinations": [{ "latitude": lat0, "longitude" : lon0 }, { "latitude": latN, "longitude": lonN }], "travelMode": travelMode, "startTime": startTime, "timeUnit": timeUnit}

Asynchrone Distanzmatrix-Anfrage-URL (GET)

Erstellt einen Job zur Berechnung einer Distanzmatrix mithilfe einer asynchronen GET-Anfrage. Diese Art von Anfrage wird nur unterstützt, wenn der Reisemodus auf Fahren eingestellt ist. Bei asynchronen Anfragen muss eine Startzeit angegeben werden.

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?origins={lat0,long0;lat1,lon1;latM,lonM}&destinations={lat0,lon0;lat1,lon1;latN,longN}&travelMode= {travelMode}&startTime={startTime}&timeUnit={timeUnit}&key={BingMapsKey}

Asynchrone Distanzmatrix-Anfrage-URL (POST)

Erstellt einen Job zur Berechnung einer Distanzmatrix mithilfe einer asynchronen POST-Anfrage. Diese Art von Anfrage wird nur unterstützt, wenn der Reisemodus auf Fahren eingestellt ist. Bei asynchronen Anfragen muss eine Startzeit angegeben werden.

HTTP-POST-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?key={BingMapsKey}

HTTP-POST-Header

Inhaltslänge: insertLengthOfHTTPBodyContent-Type: application/json

HTTP-POST-Text

{ "origins": [{ "latitude": lat0, "longitude": lon0 }, { "latitude": latM, "longitude": lonM }], "destinations": [{ "latitude": lat0, "longitude" : lon0 }, { „latitude“: latN, „longitude“: lonN }], „travelMode“: travelMode, „startTime“: startTime, „endTime“: endTime, „resolution“: Auflösung, „timeUnit“: timeUnit}

URL zum Überprüfen des Asynchronous Request-Status (GET)

Die anfängliche asynchrone Antwort umfasst aRückrufUrlEigenschaft, die die URL enthält, die zum Überprüfen des Status des Jobs verwendet werden kann. Alternativ kann die Callback-URL auch durch Anhängen des generiert werdenAnfrage IDder in der ersten asynchronen Anfrage zusammen mit demselben Bing Maps-Schlüssel zurückgegeben wird, mit demDistanceMatrixAsyncCallbackEndpunkt wie unten gezeigt. Die Antwort auf diese Anfrage zeigt an, ob die Anfrage vollständig ist oder nicht. Wenn sie vollständig ist, wird eine angezeigtresultUrl-Eigenschaft, bei der es sich um eine URL handelt, die zum Herunterladen der Ergebnisse verwendet werden kann.

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsyncCallback?requestId={requestId}&key={BingMapsKey}

Vorlagenparameter

Notiz

Zusätzliche Parameter, wie Ausgabe- und JSON-Rückrufparameter, finden Sie inAusgabeparameter.

(Video) Karten mit EXCEL und GOOGLE – MAPS erstellen | Daten &. Informationen visualisieren | super einfach!
ParameterBeschreibung
UrsprüngeErforderlich. Liste der als Koordinatenpaare mit Breiten- und Längengraden beschriebenen Ursprünge. Das Format jedes Koordinatenpaares muss eines der folgenden Formate verwenden:

Für GET-Anfragen: lat0,lon0;lat1,lon1;...;latM,lonM

Beispiel: Ursprünge=37.77916,-122.42;32.71568,-117.16172

Für POST-Anfragen:

[
{
„Breitengrad“: lat0,
„Längengrad“: lon0
},
{
"Breitengrad": lat1,
„Längengrad“: lon1
},
.
.
.
{
„Breitengrad“: latN,
„Längengrad“: lonN
}
]

Beispiel:

„Ursprünge“: [
{
„Breitengrad“: 37.77916,
„Längengrad“: -122,42
},
{
„Breitengrad“: 32.71568,
„Längengrad“: -117.16172
}
]

ReisezieleOptional. Liste der Ziele, die als Koordinatenpaare mit Breiten- und Längengraden beschrieben werden. Wenn nicht angegeben, wird eine n x n-Matrix unter Verwendung der Ursprünge generiert. Das Format jedes Koordinatenpaares muss das folgende Format haben:

Für GET-Anfragen: lat0,lon0;lat1,lon1;...;latM,lonM

Beispiel: Ziele=37.77916,-122.42;32.71568,-117.16172

Für POST-Anfragen:

[
{
„Breitengrad“: lat0,
„Längengrad“: lon0
},
{
"Breitengrad": lat1,
„Längengrad“: lon1
},
.
.
.
{
„Breitengrad“: latN,
„Längengrad“: lonN
}
]

Beispiel:

„Ziele“: [
{
„Breitengrad“: 37.77916,
„Längengrad“: -122,42
},
{
„Breitengrad“: 32.71568,
„Längengrad“: -117.16172
}
]

ReisemodusErforderlich. Gibt das Transportmittel an, das bei der Berechnung der Entfernungsmatrix verwendet werden soll. Kann einer der folgenden Werte sein:

• Fahren
• gehen
• Transit

Beispiel: travelMode=fahren

Geografische Verfügbarkeit:
-Fahrenist in den Routing-Märkten verfügbar, die im angezeigt werdenDokumentation zur geografischen Abdeckungmit Ausnahme von China, Japan und Korea.
-Gehenist in Nordamerika (USA, Kanada, Mexiko) erhältlich.
-Transitist in den Märkten erhältlich, die in der angezeigt werdenDokumentation zur Transitabdeckung.

StartzeitOptional zum Fahren. Gibt die Start- oder Abfahrtszeit der Matrix an, um prädiktive Verkehrsdaten zu berechnen und zu verwenden. Dies sollte eine Datumszeichenfolge in einem Format sein, das analysiert werden kannDateTimeOffset.Parse. Diese Option wird nur unterstützt, wenn der Reisemodus auf Fahren eingestellt ist.

Beispiel: startTime=2017-06-15T8:00:00-07:00

EndzeitOptional zum Fahren. Falls angegeben, enthält eine auf Verkehrsdaten basierende Matrix ein Histogramm der Reisezeiten und Entfernungen für die angegebenen Auflösungsintervalle (Standard ist 15 Minuten) zwischen den Start- und Endzeiten. Damit die Anfrage gültig ist, muss eine Startzeit angegeben werden und die Gesamtzeit zwischen Start und Ende darf nicht mehr als 24 Stunden betragen. Dies sollte eine Datumszeichenfolge in einem Format sein, das analysiert werden kannDateTimeOffset.Parse. Diese Option wird nur unterstützt, wenn der Reisemodus auf Fahren eingestellt ist.

Beispiel: endTime=2017-06-15T13:00:00-07:00

AuflösungOptional zum Fahren. Die Anzahl der Intervalle zur Berechnung eines Datenhistogramms für jede Zelle, wobei ein einzelnes Intervall eine Viertelstunde beträgt. Kann einer der folgenden Werte sein:

1- 15 Minuten
2- 30 Minuten
3- 45 Minuten
4- eine Stunde

Wenn die Startzeit angegeben ist undAuflösungIst dies nicht der Fall, wird standardmäßig ein Intervall von 1 (15 Minuten) verwendet.

Beispiel: Auflösung=2

distanceUnitOptional.Die Einheiten, die für Entfernungen in der Antwort verwendet werden sollen. Einer der folgenden Werte:

• Meile oder mi
• Kilometer oder km [Standard]

Beispiel: distanceUnit=mi

ZeiteinheitOptional.Die Einheiten, die für die Zeitdauer in der Antwort verwendet werden sollen. Einer der folgenden Werte:

• Minute [Standard]
• zweite

Beispiel: timeUnit=Sekunde

Spitze

Geokodieren Sie Ihre Herkunfts- und Zielorte im Voraus und speichern Sie diese Informationen, wenn Sie diese Standorte in zukünftigen Anfragen verwenden möchten. Die Nutzungsbedingungen von Bing Maps gestatten die Speicherung der Geokodierungsergebnisdaten so lange, wie Sie über eine Bing Maps-Lizenz verfügen. Dies kann dazu beitragen, zukünftige Anfragen zu beschleunigen und Transaktionen zu reduzieren, da keine Geokodierung von Ursprung und Ziel erforderlich ist.

Antwort

ADistanzmatrixDie Ressource wird zurückgegeben, wenn Sie eine Anfrage mit einer der folgenden URLs stellen. Weitere Informationen zumDistanzmatrixRessource, sieheDistanzmatrixdaten. Weitere Informationen zur allgemeinen Antwortsyntax für die Bing Maps REST Services finden Sie unterAllgemeine Antwortbeschreibung. Für die URL-Beispiele im folgenden Abschnitt werden JSON- und XML-Antworten bereitgestellt.

Diese URLs unterstützen JSON (application/json) und XML (application/xml) Antwortformate. Standardmäßig wird eine JSON-Antwort bereitgestellt, es sei denn, Sie fordern eine XML-Ausgabe an, indem Sie die Ausgabe festlegen (Ö) Parameter. Weitere Informationen finden Sie unterAusgabeparameter.

Beispiele

Alle Beispiele umfassen ein GET und das entsprechende POST und verwenden den folgenden Satz von Ursprüngen und Zielen.

Herkunft:

  • Seattle, WA (47,6044, -122,3345)
  • Redmond, WA (47,6731, -122,1185)
  • Bellevue, WA (47.6149, -122.1936)

Reiseziele:

  • Portland, Oregon (45,5347, -122,6231)
  • Renton, WA (47,4747, -122,2057)

Berechnen Sie eine einfache fahrbasierte Distanzmatrix (synchron)

Das folgende Beispiel zeigt, wie eine einfache fahrbasierte Entfernungsmatrix für den Satz von Start- und Zielorten angefordert wird. Informationen zum Anzeigen der vollständigen XML- und JSON-Antworten finden Sie unterBeispiel für eine Distanzmatrix.

HTTP-GET-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=47.6044,-122.3345;47.6731,-122.1185;47.6149,-122.1936&destinations=45.5347,-122.6231;47.4747,-122.205 7&travelMode=driving&key={ BingMapsKey}

HTTP-POST-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?key={BingMapsKey}

HTTP-POST-Header

Inhaltslänge: 450Inhaltstyp: application/json

HTTP-POST-Text

{ "origins": [{ "latitude": 47.6044, "longitude": -122.3345 }, { "latitude": 47.6731, "longitude": -122.1185 }, { "latitude": 47.6149, "longitude": -122.1936 } ], „destinations“: [{ „latitude“: 45.5347, „longitude“: -122.6231 }, { „latitude“: 47.4747, „longitude“: -122.2057 }], „travelMode“: „driving“}

Berechnen Sie eine einfache fahrbasierte Distanzmatrix für eine bestimmte Zeit (synchron)

Das folgende Beispiel zeigt, wie Sie eine einfache fahrbasierte Entfernungsmatrix für die Start- und Zielgruppe für einen bestimmten Zeitpunkt, den 15. Juni, anfordernTh, 2017 um 13:00 Uhr PST. Bei dieser Anfrage werden automatisch prädiktive Verkehrsdaten verwendet, um genaue Schätzungen bereitzustellen.

HTTP-GET-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=47.6044,-122.3345;47.6731,-122.1185;47.6149,-122.1936&destinations=45.5347,-122.6231;47.4747,-122.205 7&travelMode=driving&startTime=2017 -06-15T13:00:00-07:00&key={BingMapsKey}

HTTP-POST-Anfrage-URL

(Video) Geografische Informationen mit Power Query und Bing abrufen - Excel-Demonstration

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?key={BingMapsKey}

HTTP-POST-Header

Inhaltslänge: 497Inhaltstyp: application/json

HTTP-POST-Text

{ "origins": [{ "latitude": 47.6044, "longitude": -122.3345 }, { "latitude": 47.6731, "longitude": -122.1185 }, { "latitude": 47.6149, "longitude": -122.1936 } ], „destinations“: [{ „latitude“: 45.5347, „longitude“: -122.6231 }, { „latitude“: 47.4747, „longitude“: -122.2057 }], „travelMode“: „driving“, „startTime“: „2017-06-15T13:00:00-07:00“}

Berechnen Sie eine einfache fahrbasierte Distanzmatrix für eine bestimmte Zeit (asynchron).

Das folgende Beispiel zeigt, wie Sie eine einfache fahrbasierte Entfernungsmatrix für die Start- und Zielgruppe für einen bestimmten Zeitpunkt, den 15. Juni, anfordernTh, 2017 um 13:00 Uhr PST. Bei dieser Anfrage werden automatisch prädiktive Verkehrsdaten verwendet, um genaue Schätzungen bereitzustellen. Informationen zum Anzeigen der vollständigen XML- und JSON-Antworten finden Sie unterBeispiel für eine asynchrone Distanzmatrix.

HTTP-GET-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?origins=47.6044,-122.3345;47.6731,-122.1185;47.6149,-122.1936&destinations=45.5347,-122.6231;47.4747,-122.2 057&travelMode=driving&startTime=2017 -06-15T13:00:00-07:00&key={BingMapsKey}

HTTP-POST-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?key={BingMapsKey}

HTTP-POST-Header

Inhaltslänge: 497Inhaltstyp: application/json

HTTP-POST-Text

{ "origins": [{ "latitude": 47.6044, "longitude": -122.3345 }, { "latitude": 47.6731, "longitude": -122.1185 }, { "latitude": 47.6149, "longitude": -122.1936 } ], „destinations“: [{ „latitude“: 45.5347, „longitude“: -122.6231 }, { „latitude“: 47.4747, „longitude“: -122.2057 }], „travelMode“: „driving“, „startTime“: „2017-06-15T13:00:00-07:00“}

Sobald die erste Anfrage gestellt wurde, aAnfrage IDWird zurückgegeben. AAnfrage IDist eine eindeutige Kennung für die asynchrone Anfrage. Dies kann verwendet werden, um den Status der Anfrage zu überwachen, bis sie abgeschlossen ist. Zu diesem Zeitpunkt enthält die Antwort Folgendes:resultUrlEigenschaft, von der die resultierende Distanzmatrix heruntergeladen werden kann. Die folgende URL prüft den Status einer asynchronen Anfrage mit einemAnfrage IDvon90b07189-33d8-4cbf-866a-1bd5c5b4f474.

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsyncCallback?requestId=90b07189-33d8-4cbf-866a-1bd5c5b4f474&key={BingMapsKey}

Berechnen Sie ein fahrbasiertes Distanzmatrix-Histogramm (asynchron)

Das folgende Beispiel zeigt, wie Sie ein fahrbasiertes Entfernungsmatrix-Histogramm für die Start- und Zielgruppe zwischen dem 15. Juni anfordernTh, 2017 um 13:00 Uhr PST und 15. JuniTh, 2017 um 17:00 Uhr PST mit einer Auflösung von 2 (30-Minuten-Intervalle). Bei dieser Anfrage werden automatisch prädiktive Verkehrsdaten verwendet, um genaue Schätzungen bereitzustellen. Informationen zum Anzeigen der vollständigen XML- und JSON-Antworten finden Sie unterBeispiel für ein Distanzmatrix-Histogramm.

HTTP-GET-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?origins=47.6044,-122.3345;47.6731,-122.1185;47.6149,-122.1936&destinations=45.5347,-122.6231;47.4747,-122.2 057&travelMode=driving&startTime=2017 -06-15T13:00:00-07:00&endTime=2017-06-15T17:00:00-7:00&resolution=2&key={BingMapsKey}

HTTP-POST-Anfrage-URL

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsync?key={BingMapsKey}

HTTP-POST-Header

Inhaltslänge: 564Inhaltstyp: application/json

HTTP-POST-Text

{ "origins": [{ "latitude": 47.6044, "longitude": -122.3345 }, { "latitude": 47.6731, "longitude": -122.1185 }, { "latitude": 47.6149, "longitude": -122.1936 } ], „destinations“: [{ „latitude“: 45.5347, „longitude“: -122.6231 }, { „latitude“: 47.4747, „longitude“: -122.2057 }], „travelMode“: „driving“, „startTime“: „2017-06-15T13:00:00-07:00“, „endTime“: „2017-06-15T17:00:00-07:00“, „resolution“: 2}

Sobald die erste Anfrage gestellt wurde, aAnfrage IDWird zurückgegeben. AAnfrage IDist eine eindeutige Kennung für die asynchrone Anfrage. Dies kann verwendet werden, um den Status der Anfrage zu überwachen, bis sie abgeschlossen ist. Zu diesem Zeitpunkt enthält die Antwort Folgendes:resultUrlEigenschaft, von der das resultierende Distanzmatrix-Histogramm heruntergeladen werden kann. Die folgende URL prüft den Status einer asynchronen Anfrage mit einemAnfrage IDvon90b07189-33d8-4cbf-866a-1bd5c5b4f474.

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrixAsyncCallback?requestId=90b07189-33d8-4cbf-866a-1bd5c5b4f474&key={BingMapsKey}

HTTP-Statuscodes

Notiz

Weitere Einzelheiten zu diesen HTTP-Statuscodes finden Sie unterStatuscodes und Fehlerbehandlung.

Wenn die Anfrage erfolgreich ist, wird der folgende HTTP-Statuscode zurückgegeben.

(Video) Maps Entfernung

  • 200

Wenn die Anfrage nicht erfolgreich ist, gibt die Antwort einen der folgenden Fehler zurück.

  • 400
  • 401
  • 404
  • 429
  • 500
  • 503

Siehe auch

  • Verwendung der REST-Dienste mit .NET
  • Distanzmatrixdaten
  • Beispiel für eine Distanzmatrix
  • Beispiel für eine asynchrone Distanzmatrix
  • Beispiel für ein Distanzmatrix-Histogramm

FAQs

Which is more accurate Bing Maps or Google Maps? ›

However, despite this, many independent reviewers describe Bing Maps to be one of the best maps available, rivaling even Google Maps. They state that Bing offers better image quality. They also maintain that Bing offers a friendlier and easier to follow API. Usage in countries.

What is the difference between Google Maps and Bing Maps? ›

Difference Between Google Maps and Bing Maps

Google Maps has better quality satellite and aerial images that incorporate more locations because of its use of satellites. Google also has more features such as traffic information, more detailed location information, maps of indoor locations, and embedded maps.

Does Bing Maps still exist? ›

Currently, Bing Maps provides maps & level wise layouts of over 5300 venues across the world. The categories are: Airports, Amusement Parks, Buildings, Convention Centers, Hospitals, Malls, Museums, Parks, Racecourses, Racetracks, Resorts, Shopping Centers, Shopping Districts, Stadiums, Universities and Zoos.

How do I open Bing Maps? ›

Getting Directions

Open any web browser on your computer, and go to Bing Maps. Identify a starting location. You can have Bing Maps get your current location, or you can use the search box to set another place on the map. Centering the map to current location—Click the circle target at the top left corner of the maps.

What is the most accurate map used today? ›

Polar Projection

This type of projection shows the true areas and shapes of countries and continents, with very little distortion.

Which world map is the most accurate? ›

"The AuthaGraph World Map Projection" is a map created by Hajime Narukawa and as the architect said, it is the most accurate map of the world in 2D. First he divided the world into 96 sections, then each of them printed on inflatable tetrahedron. Each was opened and tetrahedra transferred onto a flat map.

What is the purpose of Bing Maps? ›

Bing Maps Platform (previously Microsoft Virtual Earth) is a geospatial mapping platform produced by Microsoft. It allows developers to create applications that layer location-relevant data on top of licensed map imagery.

What map is better than Google Maps? ›

Google Maps is useful, powerful, accurate, and easy to use. But if you want to keep your privacy, you should avoid it. OsmAnd, Sygic Maps, Apple Maps, HERE WeGo, and Navmii may not be perfect, but they are certainly great alternatives.

Does Bing Maps have satellite view? ›

The Bing Maps aerial imagery web mapping service offers worldwide orthographic aerial and satellite imagery.

Who has the best street view maps? ›

Google Street View is the most comprehensive street view service in the world. It provides street view for more than 85 countries worldwide. Apple Look Around provides street view for 29 countries.

Why are Google Maps off in China? ›

The short answer is that China does not use the same GPS standard as the rest of the world to plot coordinates on a map. Since maps of China use a different standard than the one used by GPS it causes the GPS coordinates to appear off, sometimes by a large amount, and this is known as the China GPS shift problem.

Does Facebook use Bing Maps? ›

In 2007, Microsoft paid $240 million for a 1.6 percent stake in Facebook. Since then, the two companies have worked together to introduce advertisements on Facebook and incorporate Bing Maps into Facebook's location application, called Places.

Is Bing Maps free to use? ›

Since Bing Maps has free and paid versions, the main indication of use to focus on is billable transactions.

Can Bing Maps be used offline? ›

With the Bing Maps API, it's easy for developers of every skill level to create robust mapping experiences that can service thousands of concurrent users - online or offline. All it takes to get started with development is a key. Learn more about our API licensing options for your project.

What is the alternative to Bing map? ›

Bing Maps Alternatives
  • Apple Maps. Apple. Apple Maps is the best way to navigate and explore the world - all with your privacy protected. ...
  • Jawg Maps. Jawg. ...
  • MapQuest. MapQuest. ...
  • OpenStreetMap. OpenStreetMap. ...
  • Google Earth. Google. ...
  • Google Maps. Google. ...
  • Waze. Waze. ...
  • Mapillary. Mapillary.

What is the most widely used map? ›

Cylindrical Projection – Mercator

One of the most famous map projections is the Mercator, created by a Flemish cartographer and geographer, Geradus Mercator in 1569. It became the standard map projection for nautical purposes because of its ability to represent lines of constant true direction.

What is the best map projection for the United States? ›

Two common map projections used in the United States are the Lambert conformal conic and transverse Mercator. The Lambert conformal conic, as its name suggests, is a conformal (preserves local angles) projection that uses a cone as its developable surface.

Is Africa bigger than North America? ›

The continents are, from largest to smallest: Asia, Africa, North America, South America, Antarctica, Europe, and Australia.

Is Google map 100% accurate? ›

Overall, Google Maps Timeline seems useful for tracking location history and providing detailed data about past activities. That said, its accuracy and reliability depend on the factors mentioned above, which means it may not be 100% accurate all the time.

Where is the center of the Earth on a map? ›

Charles Piazzi Smyth's 1864 definition of the geographical center of Earth: Giza, Egypt. In 1864, Charles Piazzi Smyth, Astronomer Royal for Scotland, gave in his book Our Inheritance in the Great Pyramid the coordinates with 30°00′N 31°00′E, the location of the Great Pyramid of Giza in Egypt.

Which country has the most beautiful map? ›

Top 10 Countries with the Most Interesting Shape on the Map
  1. 1 Italy Italy, (Italian: Repubblica Italiana), is a unitary parliamentary republic in Europe. ...
  2. 2 Japan Japan is an island country in East Asia in the Pacific Ocean.

What are the limits on Bing Maps? ›

You can have a maximum of 25 data sources per Bing Maps Account. Data that is geocoded or uploaded to a data source must use UTF-8 encoding, and can have up to 300 MB of uncompressed data and a maximum of 200,000 entities.

How do I remove my house from Bing Maps? ›

Microsoft: Visit Bing Maps, click “Report a privacy concern with this image” at the lower-left corner of the page, and select House (or another option) from “What kind of concern do you have?” You can describe in the text box below that you want to have your house blurred.

Can you remove powered by Bing map? ›

Click the 'My add-ins' link. Find the Bing Maps add-in you wish to disable and choose “off” using the toggle button.

Is MapQuest still a thing? ›

Currently, MapQuest uses some of TomTom's services for its mapping system. MapQuest provides some extent of street-level detail or driving directions for a variety of countries.

Who owns Waze? ›

Acquisition by Google

In June 2013, Waze was acquired by Google for $1.3 billion. Waze's then-100 employees received about $1.2 million on average: the largest payout to employees in Israeli high tech.

Which map is best for navigation? ›

10 best navigation and map apps on Android 2023
  1. 1 Waze Navigation & Live Traffic. ...
  2. 2 OsmAnd — Maps & GPS Offline. ...
  3. 3 Sygic GPS Navigation & Maps. ...
  4. 4 Circuit Route Planner. ...
  5. 5 Petal Maps – GPS & Navigation. ...
  6. 6 GO Navigation – GPS Sat Nav. ...
  7. 7 AllTrails: Hike, Bike & Run. ...
  8. 8 MAPS.ME.
Mar 16, 2023

What happened to Bing Maps Birdseye? ›

While Bird's Eye has always been available in the Bing Maps Web Control and via direct tile access in the Bing Maps REST Get Imagery Metadata API, we're excited to announce we now make this imagery available as static maps in the Bing Maps REST Get a Static Map API.

Which maps have birds eye view? ›

Known also as bird's-eye views, perspective maps, and aero views, panoramic maps are nonphotographic representations of cities portrayed as if viewed from above at an oblique angle. Although not generally drawn to scale, they show street patterns, individual buildings, and major landscape features in perspective.

Is there anything clearer than Google Maps? ›

Waze. Waze is a popular map app with all sorts of extra featurs that have made it a very popular Google Maps alternative. Many users have especially enjoyed the speed camera report function.

What country has the most Street View? ›

Indeed, the winner in this virtual world is Indonesia. In the ranking of the most visited countries on Google Street View, the country famous for its Komodo dragons comes first, while its capital Jakarta tops the list of Street View's most visited cities by internet users.

What is the most rated thing on Google Maps? ›

The winner for the most reviews, however, has a staggering 280,000 reviews — and a stunning 4.9-star rating. It is located in Saudi Arabia. Masjid al-Haram, also known as the Great Mosque of Mecca, is the most reviewed place on Google maps.

Are Google cars allowed in China? ›

Google hasn't rolled-out their multi-camera Street View cars in mainland China – likely because they'd simply never get state approval to do so.

Is GPS banned in China? ›

Under Chinese law, the use of geographic information in the People's Republic of China is restricted to entities that have special authorization from the administrative department for surveying and mapping under the State Council.

What do they use in China instead of Google? ›

Baidu is China's largest and most widely used search engine, much like Google in the U.S.

What is the difference between Bing Maps and Azure maps? ›

Azure Maps charges for the usage of interactive maps based on the number of map tiles loaded, whereas Bing Maps charges for the loading of the map control (sessions). To reduce costs for developers, Azure Maps automatically caches map tiles.

Why is there no Bing Maps app? ›

As per this thread: Android phones use Google Maps app which is part of the Google Play Services agreement that mandates default positioning and availability of Google Apps on these phones. You cannot navigate to Bing Maps on the phone.

What is Bing Maps on email? ›

The Bing Maps add-in for Outlook is part of Office and Microsoft 365, so it's already on your computer. When you open an email message that has a street address, the address will have a dotted underline to indicate it can be mapped by Bing.

What is better Google or Bing? ›

While Google offers users a wider selection of images and an Advanced Search function for helpful filtering, Bing offers higher-quality images with more detailed information than Google.

Does Bing pay you to search? ›

Earn with Bing in the Windows Search Box

*Level 1 members earn up to 5 points a day, 150 points a month, when searching Bing in Microsoft Edge on PC or mobile. Level 2 members earn up to 20 points a day, 600 points a month, when searching Bing in Microsoft Edge on PC or mobile.

Can you edit Bing Maps? ›

Sign in to the Bing Maps Dev Center. Click Update or view account details to view your account details, and then click Edit.

What is Bing Maps disadvantages? ›

You just have to click on a traffic light icon on a city systems to access that traffic and camera data. Unfortunately, Bing has a few disadvantages. It doesn't give directions for bikers which is a no-no for city goers and is limited on Map apps. In addition Bing Search apps results show fewer mapping results.

What is the difference between Bing and Google Maps? ›

Difference Between Google Maps and Bing Maps

Google Maps has better quality satellite and aerial images that incorporate more locations because of its use of satellites. Google also has more features such as traffic information, more detailed location information, maps of indoor locations, and embedded maps.

Does Bing Maps have a route planner? ›

There are quite a few route planning and navigation apps like Google Maps, Waze, and Mapquest. But there is one such route planner that people often forget about: the Bing Maps route planner. Bing Maps is one of the original route planning and navigation apps to be made available to us.

Why is Google Maps more accurate? ›

Maps estimates where you are from sources like: GPS: Maps uses satellites to know your location up to around 20 meters. When you're inside buildings or underground, the GPS is sometimes inaccurate.

Is there anything more accurate than Google Earth? ›

Q. Is There Another App like Google Earth? While there is no full-fledged Google Earth alternative that covers all the features, you can take a look at Zoom Earth. It offers excellent aerial views around the world and in fact, the image quality is better than Google Earth.

Is Google Earth the most accurate map? ›

When comparing Google Maps vs. Google Earth, we can see that both programs help us understand our world better. Both give us accurate views of any place in the world we might want to see, though Google Earth is more focused on those visuals than Google Maps.

How do you know if a map is accurate? ›

The accuracy of any map may be tested by comparing the positions of points whose locations or elevations are shown upon it with corresponding positions as determined by surveys of a higher accuracy.

Should I trust Google map? ›

Google maps are not considered "authentic" since they are not charted by the government, the country's top surveyor has said. Swarna Subba Rao, the Surveyor General of India, said yesterday that maps prepared by the Survey of India, a 250- year-old institute in Dehradun, were used for vital infrastructure projects.

Why does Google Maps say somewhere I wasn t? ›

Google Maps timeline is not 100% accurate it often goes wrong. Google Maps estimates where you are from sources like: GPS: This uses satellites and knows your location up to around 20 meters. Note: When you're inside buildings or underground, the GPS is sometimes inaccurate.

What is the most accurate map and why? ›

View the world in correct proportions with this map. You may not know this, but the world map you've been using since, say, kindergarten, is pretty wonky. The Mercator projection map is the most popular, but it is also riddled with inaccuracies.

How accurate is GPS on iPhone? ›

With all location services enabled, the "compass" app only shows location (latitude, longitude) to the nearest arcsecond, which is about 100 feet.

What is more accurate than maps? ›

Globes are more accurate than maps for measuring the Earth because globes are a three-dimensional representation of the world, which itself is three-dimensional, while maps are flat, two-dimensional representations.

Where is the most updated satellite map? ›

Google Earth offers free access to some of the highest resolution satellite imagery, although the highest resolution images are actually taken from airplanes. Most of the data on Google Earth was taken in the last 3-4 years.

Who has the highest resolution satellite imagery? ›

As of January 2023, commercial satellite companies such as Maxar Technologies, Planet Labs, and Airbus Defense and Space offer the highest-resolution satellite imagery available to the public.

Is Google Earth in real time? ›

You can see a large collection of imagery in Google Earth, including satellite, aerial, 3D, and Street View images. Images are collected over time from providers and platforms. Images aren't in real time, so you won't see live changes.

Does Google Earth have better images than Google Maps? ›

If you want to explore historical imagery, Google Earth has over 24 million satellite photos from the past 37 years. Overall, it gives you 20+ zoom levels in Google Earth and it's our top choice for historical imagery viewers. At its broadest scale is Landsat, then as you zoom in you get sharper imagery.

Videos

1. PowerAdventKalender 13.12.2021 - Power Apps Signale - Kompass - Bing Maps - Maps Control
(CloudCouch Rocks)
2. [ POWERAPPS ] [ USE CASE ] BingMaps in Powerapps nutzen - Auftragserfassung + Aussendienst
(SwiPowE)
3. XCargo Entfernungsberechnung: Kalkulieren Sie direkt in Excel
(LOCOM)
4. TOptaaS - Routenplanung und Routenoptimierung - kurze Einführung
(Tourenoptimierung TOptaaS)
5. Entfernungsberechnung - StandortAnalyse - Büroverlagerung
(Manfred Sündorf)
6. Adressen aus Excel direkt mit Google Maps verknüpfen und Routen planen
(BILDNER TV)

References

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated: 20/10/2023

Views: 5495

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.