How to decide the current point reach on google map?

How to decide the current point reach on google map?

I have a list of points (pickup points) of a route that I want to show in my google map with polyline.

Now i have to get the current location of bus after every 30 second, so now how we can assume that our current location is reach on our pickup up point location. because they may be differ in some point in lat & long. I want to send sms for the peoples whose pickup point is next pick up point. so need to find out that the current pickup point reach.

Also there is some scenario when bus not goes on predefined route? How can we do this type of functionality?

-------------Problems Reply------------

err, i dont really understand your entire question, but i think what your asking for is how to know when an object (bus) moving on a route has reached a destination.

I would do it this way. I would define a certain tolerance, maybe 10 meters. If the distance between the destination and my current location is less than 10 meters, that would mean i have reached.

About the bus moving without a route. I reckon you could "tether" the bus to the nearest known node. The bus "tether" would pass from node to node depending on which node is closest to the bus.

Category:google maps Views:1 Time:2009-11-19
Tags: google maps

Related post

  • How to detect that the 25000 request per day limit has been reached in Google Maps? 2011-12-29

    I'm working on a website using the Google Maps Javascript API v3. The free version of the API is limited by 25000 requests a day. But what happens if this limit is reached? Is there a way to detect that the request limit has been reached so a fallbac

  • URL-based Goal doesn't get reached in Google Analytics despite the same URL-based PageView being registered correctly. 2012-01-23

    I've got a multi-stage online questionnaire form, and I use a _gaq.push(['_trackPageview', '/Form_Stage_XX']) code to register form's stages destinations (the "XX"s stand for actual stage numbers). I also set up the URL-destination Goals based on pag

  • Cannot reach any Google site except the Portugal site get the Diagnostic every time no problems with any other site 2013-03-27

    Have tried lots of ways to try solve the problem, 1 have removed the add-ons.2.have removed and reinstalled anti virus,3 Its only the Google. com or any serch site with the Google name being part of it Internet Explorer cannot display

  • mapview working in india but not in switzerland 2011-09-30

    I am making an android app in which i am using google maps which are working perfectly in India but the same build is not working in Switzerland i.e. in switzerland the maps are not loading in. Is ther anything that is country orregion specific in ge

  • We can't reach bing maps right now check your cellular data or Wi-Fi connection 2014-04-20

    I've read some posts about this issue but I'm still stuck at the same point. Every time I switch off WiFi the Bing search, Maps, Local Scout and rest of Live ID based apps go mm... uncooperative. Keep getting the "we can't reach bing maps* right now

  • How does GPS in a mobile phone work exactly? 2008-08-28

    I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge? --------------Solutions------------- GPS, the Global Positioning System run by the United States Military, is free for c

  • Should you design websites that require JavaScript in this day & age? 2008-09-15

    It's fall of 2008, and I still hear developers say that you should not design a site that requires JavaScript. I understand that you should develop sites that degrade gracefully when JS is not present/on. But at what point do you not include funciton

  • what would be the impediments to creating an "Europanto" type universal scripting language? 2008-10-12

    After switching back and forth between several scripting languages this week, I found myself thinking how similar they all are. Yet I'm always reaching for Google (or nowadays SO) to remember details like what the local equivalents of "instanceof" an

  • Best mobile application development tool/environment? 2008-10-16

    I would like to develop a mobile application that is able to access all the features of the mobile device it runs on (camera, files, phone and network connectivity). I intend to build a series of applications that each have a specific function to per

  • Scalable google maps overlay 2008-10-30

    Is it possible to add an image overlay to a google map that scales as the user zooms? My current code works like this: var map = new GMap2(document.getElementById("gMap")); var customIcon = new GIcon(); customIcon.iconSize = new GSize(100, 100); cust

  • What is the best way to make a side-scrolling website load quickly? 2009-01-12

    I'm new to stack-overflow and programming so forgive me for any awkward phrasing! I am building a side-scrolling website which is graphic-rich, and 680x9400px in size. I will be using some javascript and/or mootools to create a cool side-scrolling ef

  • Regional Proximity UI 2009-03-05

    I'm developing a UI (AJAX-enabled; LAMP server) which will allow a user to designate regions in which a company operates. A "region" in this case may be a state (if dealing with the US) a province (Canada), or entire country (everyone else). As there

  • Have you ever had a business requirement that turned out to be an NP-Complete problem? 2009-03-10

    NP-completeness seems to me like one of those things that's mostly just theoretical and not really something you'd run into in a normal work environment. So I'm kind of curious if anyone's ever run into a problem at their job that turned out to be NP

  • What are good examples of problems that graphs can solve better than the alternative? 2009-04-01

    After reading Stevey Yegge's Get That Job At Google article, I found this little quote interesting: Whenever someone gives you a problem, think graphs. They are the most fundamental and flexible way of representing any kind of a relationship, so it's

  • What searching algorithm/concept is used in Google? 2009-04-01

    What searching algorithm/concept is used in Google? --------------Solutions------------- The Anatomy of a Large-Scale Hypertextual Web Search Engine Indexing If you want to get down to basics: Google uses an inverted index of the Internet. What this

  • Google Maps API - Slow loading javascript 2009-05-17

    I am using Google Maps API to display a map on a certain page. Problem is that the file sometimes happens to load very slow - decreasing the page's performance, because the rest of the JavaScript is first loa

  • Parse JSON reponse from Google Maps page 2009-05-18

    I'm trying to find the best way of parsing the response from a "normal" (i.e. not using the API) Google Maps page in my java code. Reason: I want to submit a query string requesting a listing (be it hotels, restaurants etc.) and then parse the JSON t

  • How do I embed ads in .NET Compact Framework application? 2009-06-10

    I'm writing a C# .NET Compact Framework application and would like to embed ads into it (e.g. small banner on top of every screen). However, I couldn't find any advertising SDKs. Aren't there really any? If implementing it from scratch, how would you

  • What should I be doing to secure my web form UI? 2009-06-11

    I have a mostly desktop programming background. In my spare time I dabble in web development, page faulting my way from problem to solution with some success. I have reached the point were I need to allow site logins and collect some data from a comm

Copyright (C), All Rights Reserved.

processed in 0.128 (s). 11 q(s)