Google api to fetch the location history of a user

前端 未结 3 1551
旧巷少年郎
旧巷少年郎 2021-02-15 12:31

I am looking for a google api to fetch the user location history, I know google is storing users location history and we are able to track it from -

https

3条回答
  •  醉酒成梦
    2021-02-15 12:36

    I have found this in the GOOGLE MAP website. there are other classes too Like Polygon. I didn't try this but Hope it will work.

    // Instantiates a new Polyline object and adds points to define a rectangle    
     PolylineOptions rectOptions = new PolylineOptions()
                .add(new LatLng(37.35, -122.0))
                .add(new LatLng(37.45, -122.0))      
    // North of the previous point, but at the same     
        longitude.add(new LatLng(37.45, -122.2))      
    // Same latitude, and 30km to the west    
                .add(new LatLng(37.35, -122.2))      
    // Same longitude, and 16km to the south    
                .add(new LatLng(37.35, -122.0));     
    // Closes the polyline.    
    // Get back the mutable Polylineenter code here
    Polyline polyline = myMap.addPolyline(rectOptions);
    

提交回复
热议问题