8

I'm developing an App for a Taxi company for my final year project. I'm using Google latitude to track the location of the driver.

I can successfully retrieve both latitude and longitude of the driver (i.e the gps enabled phone) inside C#.

Now I want to show the exact location in a form probably with a pin or mark pointed at the retrieved lat, lon crossing point.

Please help. thanks in advance.

Jay Mayu
  • 17,023
  • 32
  • 114
  • 148

3 Answers3

11

Here is the landing page for the Google maps API. The one you will likely need is Static Maps API (note you can only get 25 000 uniuqe images per client per day, you will not likely hit this but it is something to be aware of). If you want a interactive map you will need to use a WebBrowser control and use the javascript api


Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
7

Another option is to use a premade control like this one.

Carles Company
  • 7,118
  • 5
  • 49
  • 75
  • Very nice, never seen this before. I like it. – Scott Chamberlain May 26 '11 at 20:11
  • Wow, very nice, I'd recommend that one, too! – Chris Haas May 26 '11 at 20:12
  • It appears there is a [tussle going on between them and Google](http://greatmaps.codeplex.com/discussions/252531). I would maybe hold of on this until it gets sorted out – Scott Chamberlain May 26 '11 at 20:39
  • Since its a final year project use of external libaries should be avoided as much as possible as instructor will think i'm living on top of some external libraries. I used Google Static Map API and it worked like magic Thanks a lot guys for the time. – Jay Mayu May 28 '11 at 05:49
2

The easiest solution would be to just use the WebBrowser control, then you don't have to embed anything.

Chris Haas
  • 53,986
  • 12
  • 141
  • 274
  • This is a great point actually... You can pass a well formed URL including the latitude/longitude. Not sure about the marker though. – Fosco May 26 '11 at 20:04
  • oww sweet :) this did work actually. But still I prefer inside the native app than launching the browser. – Jay Mayu May 26 '11 at 20:11
  • Markers are Javascript based so that can be modified in the HTML or can be injected http://stackoverflow.com/questions/153748/how-to-inject-javascript-in-webbrowser-control – Chris Haas May 26 '11 at 20:11
  • Thanks :) I used static API :) – Jay Mayu May 28 '11 at 05:48