Welcome Guest, Not a member yet? Register   Sign In
Codeigniter - Google map Implementation
#1

[eluser]Unknown[/eluser]
I am using codeigniter 2.0.3 version and I use vehicle tracking using GPS and android device.
My device will send the locations (cordinates) on every 5 minus and need to store in db.

I need to display the exact location in the google map and draw the diagram(route)(I need to link all the location based on the lat and long) Can any one help me out on these ? Any idea how to implement this on Codeigniter ?
#2

[eluser]BIOSTALL[/eluser]
Hey blessy,

I'm the creator of the Google Maps library mentioned above.

Just wondering if a) you used it in the end and b) if so, if you managed to get it to do everything required. If there are any features you need adding let me know and I'll see what I can do.

Cheers Smile

Steve
#3

[eluser]lexilya[/eluser]
[quote author="BIOSTALL" date="1329068450"]Hey blessy,

I'm the creator of the Google Maps library mentioned above.

Just wondering if a) you used it in the end and b) if so, if you managed to get it to do everything required. If there are any features you need adding let me know and I'll see what I can do.

Cheers Smile

Steve[/quote]

Hi Steve,

It's a great and very timesaving library. Thanks for all your effort!

I have a small feature request to implement. I was using my own JS hack before this came along, and to get the streetview to display properly (show the correct address/house), I would have to change the POV (angle) as following.

Code:
function computeAngle(endLatLng, startLatLng) {
  var DEGREE_PER_RADIAN = 57.2957795;
  var RADIAN_PER_DEGREE = 0.017453;

  var dlat = endLatLng.lat() - startLatLng.lat();
  var dlng = endLatLng.lng() - startLatLng.lng();

  // We multiply dlng with cos(endLat), since the two points are very closeby, so we assume their cos values are approximately equal.

  var yaw = Math.atan2(dlng * Math.cos(endLatLng.lat() * RADIAN_PER_DEGREE), dlat) * DEGREE_PER_RADIAN;

  return wrapAngle(yaw);
}

function wrapAngle(angle) {
  if (angle >= 360) {
    angle -= 360;
  } else if (angle < 0) {
    angle += 360;
  }

  return angle;
}

(Source is from Stackoverflow)

Any chance to implement this in your library as well?
#4

[eluser]Mauricio de Abreu Antunes[/eluser]
Thanks Bio!

I'll try out your library in my app.
I need to point some english schools defined by coordinates retrivied from database and show the map.
Is it possible with your library?




Theme © iAndrew 2016 - Forum software by © MyBB