Topic: OnlineMapsOpenRouteServiceDirections
Do I have to do something specific on my Android device? When I ask for the same address when using the OnlineMapsOpenRouteServiceDirections, the result returned on the Android is different than the result returned when it runs in the editor on the PC.
This is the function call
OnlineMapsOpenRouteServiceDirections.Find(
new double[]
{
// Coordinates
lng, lat,
// Result.features[0].geometry.coordinates[0], Result.features[0].geometry.coordinates[1]
targetLng,targetLat
},
new OnlineMapsOpenRouteServiceDirections.Params
{
// Extra params
language = "en",
profile = OnlineMapsOpenRouteServiceDirections.Profile.drivingCar,
units = "mi"
}).OnComplete += OnRequestComplete;
if (targetMarker == null)
{
targetMarker = OnlineMapsMarker3DManager.CreateItem(Result.features[0].geometry.coordinates[1], Result.features[0].geometry.coordinates[0], targetPrefab);
targetMarker.scale = targetScale;
}
else targetMarker.SetPosition(targetLng, targetLat);
}
private void OnRequestComplete(string response)
{
response = "HTTP/1.1 400 Bad Request." (on Android)
response = {"routes":[{"summary":{"distance":30.137,"duration":2435.5},"segments":[{"distance":30.137...... (on PC:)
...
...
...
}