Android getting points of a specific direction in some meters in google map -


i able current direction when walk. try make drawing arc or quarter circle direction , getting edge points of circle.

actually trying 3 points. able current location. other 2 locations edge points of arc in direction. not must drawing arc or circle direction. maybe drawing polygon acceptable me.

can me find out solution on ?

thanks,

maybe can start reading documentation of shapes in google maps android api, explains here simple ways add shapes maps in order customize them application.

  • polyline series of connected line segments can form shape want , can used mark paths , routes on map.

the polyline class defines set of connected line segments on map. consists of set of latlng locations, , creates series of line segments connect locations in ordered sequence. check link on how create polylines

  • polygon object similar polyline objects in consist of series of coordinates in ordered sequence. however, instead of being open-ended, polygons designed define regions within closed loop interior filled in. can add polygon map in same way add polyline.

  • circles geographically accurate projection of circle on earth's surface drawn on map.

the following code snippet adds circle map constructing circleoptions object , calling googlemap.addcircle(circleoptions):

// instantiates new circleoptions object , defines center , radius circleoptions circleoptions = new circleoptions()     .center(new latlng(37.4, -122.1))     .radius(1000)); // in meters  // mutable circle circle circle = mymap.addcircle(circleoptions); 

for more sample code check documentation , link.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -