Home > Enterprise >  Ask a map the current location adjustment problem, didn't want to come out, also please advise
Ask a map the current location adjustment problem, didn't want to come out, also please advise

Time:09-19

Question is like this, the current do a tourist attraction in the art of map, like Yu Changlong scene

There are many landmark buildings, such as p1 on behalf of KFC, p2 represents the penguin pavilion, p3 represents a roller coaster, etc., give them one by one I through baidu's longitude and latitude of the standard of the latitude and longitude (in the database)

Suppose I current position as the pos, I walk a short distance, how to use these iconic buildings (p1, p2, p3, etc to adjust the current position?


Drew A rough sketch, in fact the problem is how to through the p1, p2, p3 determines the location of the move after A distance is A or B or C,



First time do similar projects, also please everybody many directions

CodePudding user response:

The first thing you want to make sure the ABC three points P1, P2, P3 distance relationship, for example, such as A distance: P1 & lt; The P2 & lt; P3, B: P1=P2 & lt; P3, C distance: P2 & lt; P1 & lt; P3,

Then you are calculated according to the latest position of POS and P1, P2, P3, then according to the relationship between distance,

Still have even if you know the location of the ABC is more simple
  • Related