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

  • SEARCH
  • Home
  • 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 774913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:12:22+00:00 2026-05-14T19:12:22+00:00

I’ve just started using Google’s search API to find addresses and the distances between

  • 0

I’ve just started using Google’s search API to find addresses and the distances between those addresses. I used geopy for this, but, I often had the problem of not getting the correct addresses for my queries. I decided to experiment, therefore, with Google’s “Local Search” (http://code.google.com/apis/ajaxsearch/local.html).

Anyway, I wanted to ask if I could use the “Local Search” objects provided by the API within python. Something tells me that I can’t and that I have to use json. Does anyone know if there is a work around?

PS: Im trying to make something like this: http://www.google.com/uds/samples/random/lead.html … except a matrix type deal where the insides will be filled with distances between the addresses.

Thanks for reading!

  • 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-14T19:12:23+00:00Added an answer on May 14, 2026 at 7:12 pm

    As the docs say,

    The Google AJAX Search API is a
    Javascript library that allows you to
    embed Google Search in your web pages
    and other web applications. For Flash,
    and other Non-Javascript environments,
    the API exposes a raw RESTful
    interface that returns JSON encoded
    results that are easily processed by
    most languages and runtimes.

    Python has no trouble processing Json (e.g. with the json module in the standard library in 2.6 and better — there are also several third party ones e.g. for earlier releases, simplejson being the direct precursor of today’s standard json). So it’s all about using the RESTful interface correctly, as for most Google APIs not directly wrapped for this or that non-Javascript language.

    The code examples here are for Flash, Php, Java, Python, Perl — they all boil down to visiting a specific URL, e.g. with urllib2 in Python, and processing the returned Json, e.g. with simplejson in (pre-2.6) Python.

    All the queries in these RESTful code samples are for a web search, but local search is very similar, just start with the request URL with:

    http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=...
    

    i.e., use local in lieu of web in the URL.

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

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the

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.