Announcement

Collapse
No announcement yet.

GoogleMaps XML speichern

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GoogleMaps XML speichern

    Hallo zusammen,

    ich benötige hilfe bei dem Problem, dass ich das xml welches aus dieser URL generiert wird: http://maps.google.com/maps/api/dire...K&sensor=false speichern?

    Wenn es eine Endung mit .xml hätte könnte ich ja ganz einfach .Load(url) machen aber bei der URL von google .... keine Ahnung.

    Ich hoffe ihr könnt mir helfen.

    Grüße

  • #2
    Wenn es eine einmalige Sache ist: rechte Maustaste schon mal ausprobiert?

    Ansonsten schau Dir mal WebClient.DownloadFile an.
    Attached Files
    Günther

    Comment


    • #3
      Ist leider keine einmalige sache^^ ich werde mir aber mal den WebClient.DownloadFile ansehen und wenn es klappt eine lösung posten. Danke für den Tipp

      Comment


      • #4
        Hallo,

        du kannst das XML auch ein direkt in ein XElement (Linq to XML) laden.
        [highlight=c#]
        XElement map = XElement.Load("http://maps.google.com/maps/api/directions/xml?origin=Chicago,IL&destination=Los+Angeles,CA&w aypoints=Joplin,MO|Oklahoma+City,OK&sensor=false") ;
        [/highlight]


        mfG Gü
        "Any fool can write code that a computer can understand. Good programmers write code that humans can understand". - Martin Fowler

        Comment

        Working...
        X