Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you are using .Net, why don't you just create a tiny MVC application that has a controller that exposes a method that returns some sort of formatted XML? That way you can run the whole thing locally.</p> <p><strong>EDIT:</strong></p> <p>You know, I think you can use Google Maps API without a key. I created a test project a couple of days ago. Here is a .Net code snippet (only included so that you can see how I am calling the service):</p> <pre><code>private static string GetString(Uri requestUri) { var output = string.Empty; var response = WebRequest.Create(requestUri).GetResponse(); var stream = response.GetResponseStream(); if (stream != null) { using (var reader = new StreamReader(stream)) { output = reader.ReadToEnd(); reader.Close(); } } response.Close(); return output; } </code></pre> <p>I pass in a uri with a url:</p> <pre><code>https://maps.googleapis.com/maps/api/directions/xml?mode=walking&amp;origin={0},{1}&amp;destination={2},{3}&amp;sensor=false </code></pre> <p>Where <code>{0},{1}</code> are the first lat/long, and <code>{2},{3}</code> are the second. I am not attaching a key to this and it worked for testing. My method returns a string that later I handle like so:</p> <pre><code>var response = XDocument.Parse(GetString(request)); </code></pre> <p>which gives me back xml. Again, I still recommend just creating your own web app and then deploying it somewhere publicly accessible (either in a LAN or on the web), but if you just need a web service to return XML you can use that.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload