How can I find the progress (distance covered) of travel on a route defined by the Direction Service with Google Maps JavaScript API V3 [closed] - google-maps-api-3

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 days ago.
This post was edited and submitted for review 7 days ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I have plotted a route by the Direction service with waypoints, I am tracking the travel with the current position on the route (not live GPS tracking ).
How can I measure, how many kilometers distance already covered in the route, 'not' the air distance.
In other words how to measure the progress of the travel in a pre-defined route.
I have tried to redraw another route with direction service with start position and current position. Since we cannot apply the waypoints, the google direction return another route, which is different from the pre-defined route. Hence the distance covered cannot be comparable.
Tried to get the distance with Distance-matrix service, but it has limit.
My defined route is 1 => 3, and I am reached to the green balloon, how to find the distance covered which include the loop (which skips when we re -draw with start and current position)

Related

How to fetch nearest users post from many users post from cloud firestore in flutter? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to fetch nearest users.I have many users and i take user location using geolocator and store the latitude and longitude in cloud firestore.So my question is from many users how can I find the neraby user.Here i cannot set certain radius because the nearest user may not be in that certain radius.The distance may be 100km or 100 m between the users.Fluttergeofire wont work here as it deals with map.For example I am a user, another nearest user of that app will be shown on my screen this is the main idea.No certain radius or distance will e set here. User details are stored under a document and the document name is user id.How can i fetch the nearest user using flutter and cloud firestore
You can use a library for that, it's called Geo Flutter Fire.
With it, you can query for document within given range.
Link to package :- https://pub.dev/packages/geoflutterfire

How to display the countdown time for all users [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am building a flutter auction application, I am stuck at the countdown time of an auction product so I use firebase realtime database.
I have to make sure all users see the countdown at the same time.
Please help me whether it's just a keyword to search for, a similar example or something that can help me.
And I can use nodejs to assist,
This is my database,
I want when a user posts a product of theirs, the time countdown, and I get that data to display it on the screen.
Where do I put that countdown timer? In flutter or firebase. I'm crying.
Thank you for everything,
One simple solution is to set the ending DateTime of your auction. For example, if you want your auction to be terminated after two hours, you can add
endingTime = DateTime.now().add(Duration(hours: 2))
to Firebase realtime database, and then when users come to your auction, you can just use a Timer.periodic to calculate the remaining time for every 1 second, and stop the timer when the current DateTime exceeds the termination time:
Timer.periodic(Duration(seconds: 1), (timer) {
remainingTime = endingTime.difference(DateTime.now());
if (remainingTime <= Duration.zero) {
timer.cancel()
}
});
And finally, you can just use setState to render remainingTime, or implement StreamController with StreamBuilder to render it. Hope it helps.

Adjusting point values in Google Forms

I currently have a google form that has questions from an internal audit for T-Mobile. I currently have all the point values assigned, but the issue i am running into is if we leave a question blank or mark it as N/A it is still taking points away from the total overall score. I am looking for a way to exclude these questions from deducting to the point total and have them taken off the total point value as well. Is this something that can be done in the script editor in the google form itself?

What is the best tool to see a website peak? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want to know what time my website has been more visitors. How can I check this peak? Can I do with google analytics?
Yes you can do this with Google Analytics. Please note that there are steps that Google takes to prevent you from getting analytics at a level detailed enough to violate the privacy of a user, so you may not exactly get the answer you want if you have too long of a history, or too few users visiting over the period you are analyzing.
The other thing you need to be careful of is that most data is geared toward sessions whereas your question is asking about visitors.
The best way to measure this sort of data is if you have unique advertising identifiers, cookies, or a login page that is being captured in a way that allows you to track a unique visitor as it navigates through your site, and treat that separately from a user who double clicked on a particular page. If you have a database, or log files, or an event strip, or even are able to capture ip addresses somewhere of where the visits are coming, along with timestamps, this can help you get the answer you're looking for better than can be achieved directly from Google Analytics.
Another caveat with GA is that the data may continue to trickle in over 24 hour period or longer, so if the spike just happened, you'll want to wait a while before making a final analysis.
With Google Analytics, if you are trying to investigate a single peak in your data on a single day, and that day occurred at least 24 hours ago, then here's an example of one way to get time-segmented traffic data for a website:
Log on to Google Analytics
On the left hand side click to expand the "Audience" tab and click on "Overview"
select the date range in the top right for instance April 1 - April 1 2016
slightly below that select "Hourly" instead of day (top right of the chart)
In the top left, click on Users instead of Sessions.
You should now see an hourly view of the traffic over the period of April 1.
I've attached a screenshot of this final page, taken from an old Google Analytics account that is tracking a defunct website (which is why there are so few data points)

Using GoogleAnalytics to keep track of sessions [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
It it possible to use GoogleAnalytics to keep track of individual user sessions? I mean, not the average time spend by users on the website, but how long did each user stay in total on the website?
My hosting option does not include databases, so I'd like to use GoogleAnalytics to keep track of user sessions. Can it be done? I was unable to find anything satisfying on the web. :(
No, not really - Google Analytics doesn't track on a per user basis (because that's actually quite useless, among other things).
You could do a workaround, however. Assign each visitor an id (or pull the user id from the analytics cookie via javascript). Then trigger a E-Commerce-Transaction with the id as transaction id and the time on site (use the timestamps from the GA cookie) as transaction value - Google will add up transaction values if the transaction id is the same. This idea is untested and obviously needs some work, but it should be doable.
Which leaves the question , why ? What kind of business decision do you want to base on a vast list of useless info ? The average values are much more useful.
Update: after reading your comment, you're doing it wrong. You want an advanced segment-> Exclude Visit Duration smaller (or greater, whatever) than 10 seconds.
Google Analytics does not allow you to track individual users.
See this thread:
http://productforums.google.com/forum/#!topic/analytics/tTaqssN7sY8
Try out Woopra: http://www.woopra.com/
You might be able to filter by advanced segments or use custom reports to do your own filtering. Or create a custom metric that itself is filtered.

Resources