English 中文(简体)
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?

最佳回答

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.

问题回答

暂无回答




相关问题
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 ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签