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 8917787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:34:44+00:00 2026-06-15T05:34:44+00:00

If I do: http://maps.googleapis.com/maps/api/geocode/json?address=kemayoran&sensor=false This is the result I want if not for the

  • 0

If I do:
http://maps.googleapis.com/maps/api/geocode/json?address=kemayoran&sensor=false This is the result I want if not for the fact I want this to work when visitors type kem instead of kemayoran.

{
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta Pusat",
               "short_name" : "Jakarta Pusat",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta",
               "short_name" : "Jakarta",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Jakarta Capital Region",
               "short_name" : "Jakarta Capital Region",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Indonesia",
               "short_name" : "ID",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "Kemayoran, Jakarta, Indonesia",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : -6.14935190,
                  "lng" : 106.8857620
               },
               "southwest" : {
                  "lat" : -6.171493900000001,
                  "lng" : 106.84546290
               }
            },
            "location" : {
               "lat" : -6.16165420,
               "lng" : 106.8550150
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : -6.14935190,
                  "lng" : 106.8857620
               },
               "southwest" : {
                  "lat" : -6.171493900000001,
                  "lng" : 106.84546290
               }
            }
         },
         "types" : [ "sublocality", "political" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "train_station", "transit_station", "establishment" ]
            },
            {
               "long_name" : "Jalan Garuda",
               "short_name" : "Jalan Garuda",
               "types" : [ "route" ]
            },
            {
               "long_name" : "Pasar Baru",
               "short_name" : "Pasar Baru",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Sawah Besar",
               "short_name" : "Sawah Besar",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta Pusat",
               "short_name" : "Jakarta Pusat",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta",
               "short_name" : "Jakarta",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Jakarta Capital Region",
               "short_name" : "Jakarta Capital Region",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Indonesia",
               "short_name" : "ID",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "10710",
               "short_name" : "10710",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Kemayoran, Jalan Garuda, Jakarta 10710, Indonesia",
         "geometry" : {
            "location" : {
               "lat" : -6.16204140,
               "lng" : 106.84154990
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : -6.160692419708497,
                  "lng" : 106.8428988802915
               },
               "southwest" : {
                  "lat" : -6.163390380291502,
                  "lng" : 106.8402009197085
               }
            }
         },
         "types" : [ "train_station", "transit_station", "establishment" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta Pusat",
               "short_name" : "Jakarta Pusat",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Jakarta",
               "short_name" : "Jakarta",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Jakarta Capital Region",
               "short_name" : "Jakarta Capital Region",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Indonesia",
               "short_name" : "ID",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "10620",
               "short_name" : "10620",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Kemayoran, Jakarta 10620, Indonesia",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : -6.1602730,
                  "lng" : 106.8572680
               },
               "southwest" : {
                  "lat" : -6.1664210,
                  "lng" : 106.851820
               }
            },
            "location" : {
               "lat" : -6.16165420,
               "lng" : 106.8550150
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : -6.1602730,
                  "lng" : 106.8572680
               },
               "southwest" : {
                  "lat" : -6.1664210,
                  "lng" : 106.851820
               }
            }
         },
         "types" : [ "sublocality", "political" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Krembangan",
               "short_name" : "Krembangan",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Surabaya",
               "short_name" : "Surabaya",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "East Java",
               "short_name" : "East Java",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Indonesia",
               "short_name" : "ID",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "60176",
               "short_name" : "60176",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Kemayoran, Surabaya 60176, Indonesia",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : -7.2369960,
                  "lng" : 112.7333040
               },
               "southwest" : {
                  "lat" : -7.2465120,
                  "lng" : 112.726760
               }
            },
            "location" : {
               "lat" : -7.2417540,
               "lng" : 112.7300320
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : -7.2369960,
                  "lng" : 112.7333040
               },
               "southwest" : {
                  "lat" : -7.2465120,
                  "lng" : 112.726760
               }
            }
         },
         "types" : [ "sublocality", "political" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "Kemayoran",
               "short_name" : "Kemayoran",
               "types" : [ "sublocality", "political" ]
            },
            {
               "long_name" : "Bangkalan",
               "short_name" : "Bangkalan",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Bangkalan Regency",
               "short_name" : "Bangkalan Regency",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "East Java",
               "short_name" : "East Java",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Indonesia",
               "short_name" : "ID",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "69116",
               "short_name" : "69116",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Kemayoran, Bangkalan 69116, Indonesia",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : -7.0243290,
                  "lng" : 112.7483040
               },
               "southwest" : {
                  "lat" : -7.039670,
                  "lng" : 112.7349340
               }
            },
            "location" : {
               "lat" : -7.031263999999999,
               "lng" : 112.7417250
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : -7.0243290,
                  "lng" : 112.7483040
               },
               "southwest" : {
                  "lat" : -7.039670,
                  "lng" : 112.7349340
               }
            }
         },
         "types" : [ "sublocality", "political" ]
      }
   ],
   "status" : "OK"
}

I got several kemayoran.

If I do:

http://maps.googleapis.com/maps/api/geocode/json?address=kemayoran&sensor=false&bounds=-6,106|-5,107

I got kemayoran. But only one even though all the other kemayoran is well within the bounds.

I specified the bound correctly on first query because as you can all see, the latitude logitude of kemayoran is well within the bounds -6,106|-5,107

If I do

http://maps.googleapis.com/maps/api/geocode/json?address=kemay&sensor=false&bounds=-6,106|-5,107

I got Kemnay instead of kemayoran.

Compare that with this private API:
http://maps.google.com/maps/suggest?q=kemay&cp=2&hl=en&gl=&v=2&clid=1&json=a&ll=-6.230664,106.55365&spn=1,1&src=1&num=20&numps=0

The result is precisely what I want except that it doesn’t give latitude and longitude, not to mention being a private API.

So, what should I do?

  • 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-06-15T05:34:46+00:00Added an answer on June 15, 2026 at 5:34 am

    The bounds is only a way to bias the search results as explained in Google’s documentation of the webservice. Since you specify a search string of “Kemay” it finds the exact match in Scotland. However, as observed when you type in the exact string it finds what you’re looking for.

    EDIT:

    It really sounds like you’re looking for a functionality like the places autocomplete feature (either via webservice, or better yet via the javascript library). That one seems to give more accurate results while typing in a partial string.

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

Sidebar

Related Questions

I am trying to parse the JSON at this URL: http://maps.googleapis.com/maps/api/geocode/json?address=canada&sensor=false in Objective-C. I'm
So I have a URL like: http://maps.googleapis.com/maps/api/geocode/json?&sensor=false&address=1330+SW%203rd%20Ave,%20Portland,%20OR But it returns just JSON. Im looking
Try: http://maps.googleapis.com/maps/api/geocode/json?address =Őrbottyán,Hungary&sensor=true On an iPhone 4 & simulator, -(void)requestFailed:(ASIHTTPRequest *)request { NSLog(@geocode fail
Here is the API: http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true You can see the JSON object if you go
I call the Google geolocation service like this: $querystring = http://maps.googleapis.com/maps/api/geocode/json?sensor=false&latlng=.$row['lat'].,.$row['lng']; $context = stream_context_create(array(
I ran http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true in iPhone project for getting coordinate of 1600 Amphitheatre Parkway, Mountain
I have a question. I have the xml http://maps.googleapis.com/maps/api/geocode/xml?address=new+york&sensor=true I want to read from
I want to parse the addresses from the JSON response (http://maps.googleapis.com/maps/api/geocode/json?address=public+library+san+diego&sensor=false) received from Geocoding
I am using this code for finding the lat lon of a location $api='http://maps.googleapis.com/maps/api/geocode/json?address=United
If I put this URL: http://maps.googleapis.com/maps/api/geocode/json?address=la%20coru%C3%B1a,%20la%20coru%C3%B1a,%20espa%C3%B1a&sensor=false&region=es I get this json object: { results :

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.