Skip to content

Conversation

Lakhankumawat
Copy link
Contributor

Description

Tracking the route of a person OR Tracking a specific path followed by a person

  • Gmplot Can be used to plot the coordinates on Google map .
  • These coordinates can be imported from a fixed CSV file that doesn't change OR can be taken as input from user in Latitude and Longitude format .

Fixes #713

Have you read the Contributing Guidelines on Pull Requests?

  • Yes
  • No

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines(Clean Code) of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have created a helpful and easy to understand README.md
  • My documentation follows Template for README.md
  • My changes generate no new warnings
  • I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

@Lakhankumawat
Copy link
Contributor Author

For any modifications let me know .

Copy link
Contributor

@kaustubhgupta kaustubhgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upload the CSV used in the script. Implement these changes too:

37.766227, -122.460213
37.764028, -122.510347

# Author
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Author
# Author

Copy link
Contributor Author

@Lakhankumawat Lakhankumawat Mar 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got to changes which are requested but i have some doubts

  1. Do i remove author name from README / I mean i didn't get above review.
  2. Rest else is fine i will take file address as an input form user .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, You can keep the author name, no issues, I was suggesting to remove the space with (#) and line start as the Author level was not rendered properly.

gmap = gmplot.GoogleMapPlotter(20.613456, 72.9431185,17) #Plotting data on map
#gmap.coloricon="https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png"

with open('Home/MyPC/Python/LatLong.csv','r') as f: #give the address of csv file with respect to your folder containing .py file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask the user to input the file path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changes are made .

@kaustubhgupta kaustubhgupta added the bug Something isn't working label Mar 27, 2021
Modified author's name in readme , removed unnecessary spaces
37.766227, -122.460213
37.764028, -122.510347

### Author : [Lakhan Kumawat](https://github.com/Lakhankumawat)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Author : [Lakhan Kumawat](https://github.com/Lakhankumawat)
## Author : [Lakhan Kumawat](https://github.com/Lakhankumawat)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If i remove one # then size will be too big and it looks unusual .
If you say so i can remove .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove this, we need to follow a consistent pattern

@@ -0,0 +1,24 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upload the CSV to be used in the script for testing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my code has some bugs i will resolve them in a day or two and will notify you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, make sure to update it by tomorrow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually i m out of town these days i will be back in 3 days so it would be great sir if you wait , please

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay, I will put the hold label for now.

@kaustubhgupta kaustubhgupta added the hold Needs a second thought label Mar 28, 2021
@Lakhankumawat
Copy link
Contributor Author

I think now it looks fine , mentors please have a look

  • Code Works Properly
  • CSV file added / Clarification
  • Output Screenshot added in README

Copy link
Contributor

@kaustubhgupta kaustubhgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have not done something new here: https://pypi.org/project/gmplot/. Only the coordinates loading is changed from zipping to pandas data frame. This being level2 issue needs modifications. Suggestions:

  • Add some more coordinates, Indian coordinates of around 100 places.
  • Here: gmplot.GoogleMapPlotter(37.771260, -122.511011,17), take input for zoom level and for central coordinates, take the average of all the coordinates for x and y separately.

@kaustubhgupta kaustubhgupta removed the hold Needs a second thought label Mar 31, 2021
@Lakhankumawat
Copy link
Contributor Author

You have not done something new here: https://pypi.org/project/gmplot/. Only the coordinates loading is changed from zipping to pandas data frame. This being level2 issue needs modifications. Suggestions:

  • Add some more coordinates, Indian coordinates of around 100 places.
  • Here: gmplot.GoogleMapPlotter(37.771260, -122.511011,17), take input for zoom level and for central coordinates, take the average of all the coordinates for x and y separately.

Requested Changes are made

  • For now i haven't modified README screenshot , waiting for @kaustubhgupta sir to verify changes after that i will modify it.
  • Code works fine
  • 100 Coordinates added
  • Average Taken in x and y
  • Zoom is taken as input

    Screenshot (41)

@Lakhankumawat
Copy link
Contributor Author

Also i could have added polygon just like in the link you mentioned but it would have been lot more cluttering with 100 coordinates

@kaustubhgupta
Copy link
Contributor

You have not done something new here: https://pypi.org/project/gmplot/. Only the coordinates loading is changed from zipping to pandas data frame. This being level2 issue needs modifications. Suggestions:

  • Add some more coordinates, Indian coordinates of around 100 places.
  • Here: gmplot.GoogleMapPlotter(37.771260, -122.511011,17), take input for zoom level and for central coordinates, take the average of all the coordinates for x and y separately.

Requested Changes are made

  • For now i haven't modified README screenshot , waiting for @kaustubhgupta sir to verify changes after that i will modify it.
  • Code works fine
  • 100 Coordinates added
  • Average Taken in x and y
  • Zoom is taken as input
    Screenshot (41)

This looks good. You can make the changes in the PR

@Lakhankumawat
Copy link
Contributor Author

Updated README request a review from other members please if it is good to go.
For modifications let me know

| ------ | ------ |
| `pip install gmplot` | [Gmplot/PyPI](https://pypi.org/project/gmplot/) |

# CSV File Data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you can remove this section and corresponding lat-long values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done ✅

@kaustubhgupta
Copy link
Contributor

@Kushal997-das

@kaustubhgupta kaustubhgupta removed the bug Something isn't working label Apr 1, 2021
@kaustubhgupta kaustubhgupta added the next review needed Approved by some mentors, more approvals needed label Apr 1, 2021
@kaustubhgupta kaustubhgupta added Approved PR Approved and Ready to Merge gssoc23 Issues created for/by the GirlScript Summer of Code'23 Participants level2 Bug fixing, Adding small features and removed next review needed Approved by some mentors, more approvals needed labels Apr 3, 2021
Copy link
Owner

@avinashkranjan avinashkranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM..

@avinashkranjan avinashkranjan merged commit d7288b5 into avinashkranjan:master Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved PR Approved and Ready to Merge gssoc23 Issues created for/by the GirlScript Summer of Code'23 Participants level2 Bug fixing, Adding small features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🌍GPS - Track The Route
5 participants