Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request:find distance btwn added devices #61

Open
shanthisree0315 opened this issue Jan 29, 2018 · 9 comments
Open

feature request:find distance btwn added devices #61

shanthisree0315 opened this issue Jan 29, 2018 · 9 comments

Comments

@shanthisree0315
Copy link

it would be really helpful to find distance between devices.
i want to implement this . but i need your help .

@tananaev
Copy link
Member

What kind of help do you need? Also, please explain the use case.

@shanthisree0315
Copy link
Author

usecase: will be helpful to know if one of my friend at point A wants to reach other friend at point B . how much distance he has to travel and also time reqd(extra).

needed help:how do i start ?
(google maps already has this feature, so in traccar i can select two devices among list of added devices and get the distance(best and fastest route for now) btwn two and time reqd( according to traffic).

@tananaev
Copy link
Member

I think it would make sense to make it more generic. For example have a ruler on map to measure distances on map between any points.

Your question is too generic. If you need some help I would suggest to ask more specific questions.

@shanthisree0315
Copy link
Author

okay sorry I put too many tasks in that previous comment it seemed generic.
Can we add this feature on traccar?
image below:
https://inducesmile.com/android/android-find-distance-and-duration-between-two-points-on-android-map/

@shanthisree0315
Copy link
Author

image

@tananaev
Copy link
Member

I don't see why not.

@shanthisree0315
Copy link
Author

absolutely . can u please guide me how to .
because traccar manager android app is a web view of the traccar web interface. and also is using openstreetMap.
how to change it to use google maps api .where should i put my google api key , modify xml files etc.

@tananaev
Copy link
Member

Well, I don't think you should be using Google Maps. Replying only on proprietary API is not a good idea.

@shanthisree0315
Copy link
Author

shanthisree0315 commented Jan 30, 2018

@tananaev yes I thought so ,But using google maps API has an advantage in implementing this feature like:
The Google Maps Distance Matrix API returns information based on the recommended route between start and end points, as calculated by the Google Maps API, and consists of rows containing duration and distance values for each pair.
This service does not return detailed route information. Route information can be obtained by passing the desired single origin and destination to the Google Maps Directions API.

hence Anton sir , can u please guide me how to change openstreetMap to googleMaps API , where should i put my key etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants