Ah ok, thanks.
I think its working just perfect now: http://bit.ly/vZdevz [the dark blue
marker is de train] [press Volg Deze Trein to keep updating the location:
it refreshes every minute]
At first I thought the position calculation was inaccurate, but then I
thought of the fact that the polyl
On Sunday, October 30, 2011 5:01:59 PM UTC+1, Kasper wrote:
>
> There are just a few things bothering me though:
> -How did you select the polylines you needed for determining the positions?
>
That's done in advance, server-side, check the AJAX feed with vehicle data
that is explained here https:
There are just a few things bothering me though:
-How did you select the polylines you needed for determining the positions?
and:
-How do you take returning rides into account? For example, when a train is
going away from a station, it will also come back some time, but the
coordinates of the po
Ok, so I just put the script in my code...
And it works!! This is amazing!!
I first had to completely change the way I interacted with my server to get
the polyline data, but now it's much easier.
I will now also have to start writing a php function [as I get all my data
from php] which picks t
Thanks for that explanation, it is indeed very simple to calculate the
percentage between two stations [I've actually made something similar, but
then giving the time in hours :P ]
You are talking about combining the paths, now, Oh wait...
I just realised that the data which is loaded into a pat
Forgot to link the pastie. Here it is: http://pastie.org/2758220
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/99zE-xwKdfMJ.
To
On Tuesday, October 25, 2011 8:27:02 PM UTC+2, Kasper wrote:
>
> But how did you place them on the polylines? I assume your routes consist
> from different small polylines, which are then linked together (in an
> array?)
>
That's correct.
> I've tried doing this myself here [
> http://bit.ly
Yeah, I guess I have to figure out a lot more about Javascript before I can
make something close to this...
I actually already figured out you used the FusionTables as overlay, but
didnt really understand why you also used the encoded polylines. (I do now
:P )
But how did you place them on the
On Saturday, October 15, 2011 1:32:42 PM UTC+2, Kasper wrote:
>
> I, unfortunatly, am not familiar with javascript...
>
:( then I suggest you to invest some time and read more about it, is an
important prerequisite if you want to go in advanced topics as animating
marker along a polyline.
>
I've been looking at your code now, but you've made everything in JS, as it
seems.
I, unfortunatly, am not familiar with javascript...
Some things I'm really curious about:
*-How did you build your routes and stations?
-(How) did you cache the planned routes? (assuming that is the way you get
t
Wow that project looks amazing!
All your data is coming from the map.js file?
Could you perhaps explain a bit how you did that?
Sorry for the late reply...
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion
Hello Kasper,
On Wednesday, October 12, 2011 10:35:55 PM UTC+2, Kasper wrote:
>
> What do you think is the best way to do that?
> It is hard to do in databases (atleast, I think so) because the amount of
> stations on a route is never the same...
>
Check this project https://github.com/vasile/ve
I didn't get to work on my web application a lot this week, but I found a
way to get the times of arrival a lot faster and easier. (by planning routes
and saving all the stations)
Now, the problem is that all the routes are planned in the future, you can't
request data from the past. So somehow
Cool, thanks for those examples, I'll check them out soon.
As for the database, considering the fact trains always follow fixed routes,
I guess I could make those myself from the polyline segments.
However, this will not be very nice with temporary changes, I'll have to
look into that.
--
You
> What exactly do you think is the difference between an animation and
> calculating the positions in intervals?
Same thing ; my point was that you don't need to animate or display
any kind of _polyline_ at all, just plot train markers on the map.
Polyline-animating examples may be irrelevant for
What exactly do you think is the difference between an animation and
calculating the positions in intervals?
Ultimately I'd like to have the marker moving smoothly, (which is why I
reffered to that example earlier) and I don't know if that's the case with
what you are describing (the intervals).
If you are calculating and plotting real-time train locations, you
don't need any kind of polyline animation as such. You just plot the
trains, and recalculate and re-plot at intervals.
You will need the polyline between stations so that you know where to
plot the trains, though. From the timet
@Rossko:
Well, the national train company from The Netherlands has got a database,
which is accessible to all.
In that database you can request all the available trainstations, and
request all departing trains for every station. A small example of that can
be seen here: http://ephemurl.com/3d/pj
> -A map of The Netherlands, where they can select a province.
OK
> -After clicking that province, a zoomed Google Maps map [of that province]
OK
> is shown where markers are moving along the railroad tracks on the maps.
> (and those railroadtracks would have to be make by me, in poly lines, as
*@Larry:*
Yeah, that would be good aswell, as long as it is possible to move them
based on time, and really animate them, so you can see them move.
Ok, the dynamic animation isnt really neccessary, but would make the whole
look a lot better.
Could you perhaps show me an example of the examples?
I'm probably misunderstanding what you mean by 'plan routes'.
Can you describe what you expect a user to see and do, and what you
expect to happen when they do it?
As Larrys says, it's easy to move a marker along a known polyline and
you've already found an example of that in your other threads.
On Sep 30, 12:55 pm, Kasper wrote:
> That is for when you'd like the user to plan it's own routes, right?
>
> Let's say if I wanted to animate trains along custom drawn polylines, how
> hard would that be?
If you have a polyline, it isn't hard (or at least there are examples
of how to animate a m
That is for when you'd like the user to plan it's own routes, right?
Let's say if I wanted to animate trains along custom drawn polylines, how
hard would that be?
And the data for the departure and arrival times would be gathered from a
database.
--
You received this message because you are su
That is for when you'd like the user to plan it's own routes, right?
Let's say if I wanted to animate trains along custom drawn polylines, how
hard would that be?
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this di
> And when I want google to use those lines to plan routes across them,
> do they all need to be 1 shape, or how do I have to build the railroad
> network?
You can't persuade the Google routing engine to use your data.
As already discussed in
http://groups.google.com/group/google-maps-js-api-v3/br
Thanks! And when I want Google Maps to plan routes across those lines,
how do I have to build the railroad network? (1 shape, multiple, etc.)
How does that work?
Kasper
On Sep 28, 11:37 pm, Kasper wrote:
> I have read that it is possible to create custom polylines on your own maps,
> but is it a
That looks like what I need!
And when I want google to use those lines to plan routes across them,
do they all need to be 1 shape, or how do I have to build the railroad
network?
Kasper
On Sep 29, 11:06 am, davie strachan wrote:
> Tryhttp://www.doogal.co.uk/polylines.php
> Regards Davie
>
> On S
Try http://www.doogal.co.uk/polylines.php
Regards Davie
On Sep 28, 10:37 pm, Kasper wrote:
> I have read that it is possible to create custom polylines on your own maps,
> but is it also possible to plan routes using only those points?
> Please let me know
>
> Also, is there an easy way to make l
Test post
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/LsxCxeCtXJsJ.
To post to this group, send email to google-maps-js-api-v3
29 matches
Mail list logo