Questions tagged [bearing]

122 questions
0
votes
1 answer

Issue with MKOverlayView

We are working on MKOverlayView, below is the expected functionality: An image has to be overlaid on the map and has to be tilted by a certain angle (bearing). Issue: When the map is zoomed to the maximum level, one of the corners of the overlaid…
chandvoid
  • 133
  • 1
  • 12
0
votes
3 answers

Need a sector based on bearing, geopoint, distance and angle

I have a problem. I am trying to write a JAVA code were in given bearing, (lat,lon) , speed I need to get all points which form a sector (like in the diagram (x1,y1) , (x2,y2) and list of points which form an Arc in the direction which is given by…
Shreyas Rao B
  • 193
  • 4
  • 17
0
votes
1 answer

How to convert Bearing to direction?

Someone knows how an easy way to convert Bearing (0° to -180° and 0° to 180°) to Compass Direction (0° to 360°)? I searched for a Location method or a user function but...
Caiçara
  • 317
  • 2
  • 7
0
votes
1 answer

Get Degree From current location to the destination location Android

Good day.I have been told to make an app which will show some logo on the camera surface as soon as the camera is 100 metres away from the destination.I did it and now the problem is that if i turn backward to the building,the logo will still appear…
Jean Allen
  • 63
  • 3
  • 14
0
votes
0 answers

Should be a easier way to get which side rhumb line segment

Should be a easier way to get which side of a rhumb line segment. I have tried haversine formulas etc. but over 50 metres to 10kms it is accuracy irrelevant and outputs a initall bearing rather than a rhumb bearing. I also use some data further to…
Tomsmith
  • 15
  • 7
0
votes
0 answers

Python get two GPS point bearing

Trying to get two gps coordinate bearing in degree, but get wrong result. I think the problem is python math work in radiant, but when a convert to degrees got wrong result too. The good result is around 30-33. With this code, i get 0,75, when…
imi79
  • 9
  • 1
0
votes
1 answer

why is my headingValue such diffrent from bearingValue while looking at targetLocation?

In my Android application I have to use my current heading (using accelerometer and magnetometer) and current bearing to targetLocation (location.bearingTo(targetLocation)). I already know that using accelerometer and magnetometer to figure out…
ryoga86
  • 3
  • 2
0
votes
1 answer

Calculate future latitude longitude with initial coordinates, heading and distance

I have been reading through stackoverflow and this site (http://www.movable-type.co.uk/scripts/latlong.html) about how to do this, but I cant get my code to give a correct answer. It is giving a coordinate that isnt in the correct direction. I have…
SQlBeginner
  • 65
  • 3
  • 9
0
votes
1 answer

How to find the user moving direction using the bearing value returned by location manager?

LocationObject.getBearing() returns the horizontal direction of travel of this device[0 to 360 degree]. How to calculate the user moving direction like North, south and all from this bearing value? Thanks in advance.
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
0
votes
2 answers

Calculate rotation from two coordintes

I have a OpenLayers-3 map with two points. I want to rotate map in direction from p1 to p2 ( like navigation system, when you turn map rotates too). In android there is function p1.bearingTo(p2) which return bearing in degrees. But it works as…
user3186836
0
votes
2 answers

How to position map so two markers are aligned in a vertical line

I am developing an application that uses google map to navigate the user to a given location. I want to orient the map so the destination point always be at the top of the map and the current location marker to be at the bottom and both markers to…
Mojo Risin
  • 8,136
  • 5
  • 45
  • 58
0
votes
1 answer

Google Earth bearing messed up

I don't know if this is supposed to happen, but it is definitely not what I want. I have a python script that creates a kml file based on latitude, longitude and altitude from a database. Once the kml is created, everything looks fine, but the…
dylnmc
  • 3,810
  • 4
  • 26
  • 42
0
votes
1 answer

Calculate Bearing with lat and long but do not have ATAN2 function

I've been searching the web trying to find a way to calculate bearing without using the ATAN2 function. I found the this code but I can't make it work. I trying to validate the equation before I use it in my PLC program but the numbers are not…
0
votes
2 answers

Lua Trigonometry

Currently I am trying to get the bearing from the first latitude-longitude point to the last. I have been to the movable-type website and have got my distance to work but my bearing seems to be giving me trouble. Y = math.sin(dLon_WPM_1) *…
user2609216
  • 35
  • 1
  • 5
0
votes
1 answer

Calculating bearing error

This is the formula I am using: double lat1 = [self getRadiansFromDegress:self.LocationLatitude]; double lat2 = [self getRadiansFromDegress:PointOfInterest.latitude]; double x = sin(lonDiff) * cos(lat2); double y = cos(lat1)*sin(lat2)…
user2125844
  • 315
  • 2
  • 3
  • 11
1 2 3
8
9