Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 316523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:23:31+00:00 2026-05-12T08:23:31+00:00

Google has this fine new Google Maps API v3 which is a Javascript API.

  • 0

Google has this fine new Google Maps API v3 which is a “Javascript API”.

Is there any possibility to invoke this API from a Windows Forms application written in Visual C# .net 3.5?

EDIT:
The goal is to convert addresses to lat/long format using the Google Maps Geocoder.

EDIT 2:
I’d like to use v3 of the API as it doesn’t require an API key anymore. API keys should be bound to a webserver which can’t be the case for a Windows Forms app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:23:32+00:00Added an answer on May 12, 2026 at 8:23 am

    Edit: Looks like the api key is no longer required.

    You can use the REST APIs and parse the response (XML/JSON/CSV).

    http://maps.google.com/maps/geo?q=State+St,+Troy,+NY&output=csv&oe=utf8&sensor=false
    

    Would output:

    200,6,42.730070,-73.690570
    

    Which is:

    • 200 – G_GEO_SUCCESS
    • 6 – Street level accuracy
    • 42.730070 – Latitude
    • -73.690570 – Longitude

    If you are not familiar with the System.Net APIs, they would go something like this:

    const string GeoCodeUrlFormat = "http://maps.google.com/maps/geo?q={0}&output=csv&oe=utf8&sensor=false";
    
    string location = "State St, Troy, NY";
    string url = String.Format(GeoCodeUrlFormat, HttpUtility.UrlEncode(location));
    
    HttpRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
    HttpResponse response = (HttpResponse)request.GetResponse(); // Can throw an exception
    Stream responseStream = response.GetResponseStream();
    
    using (StreamReader reader = new StreamReader(responseStream)
    {
        string firstLine = reader.ReadLine();
    
        string[] lineParts = firstLine.Split();
    
        GeolocationResult result = GoogleMapper.MapGeolocationResult(lineParts);
    
        // TADA
    }
    

    Obviously there’s no error handling, it doesn’t support multiple return values and I haven’t actually implemented MapGeolocationResult, but it should give you a start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 197k
  • Answers 197k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To solve this problem, I ended up making a flat… May 12, 2026 at 7:20 pm
  • Editorial Team
    Editorial Team added an answer The portion after your file name /index.php is called the… May 12, 2026 at 7:20 pm
  • Editorial Team
    Editorial Team added an answer The HttpFox plugin for Firefox works pretty well for this… May 12, 2026 at 7:20 pm

Related Questions

I have a bit of a problem. I am trying to do the following
I'm attempting to add some text to the directions results the Google Maps API
So, i have the following script to use the google maps API, its all
I currently have a user control that is used on both an /Address/Edit and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.