avnic
avnic

Reputation: 3361

Search address on Google Map API

I rewrite the message for better understanding.

How can I search for address only using Google Map API?

If I will search for address I don't want Google to give a business with the same name of the address (I don't want to get business at all).

Upvotes: 0

Views: 3622

Answers (4)

Chris B
Chris B

Reputation: 15834

If you are using the AJAX Search API, there is an argument for Local Search which allows you to exclude business listings:

mrt? - This optional argument specifies which type of listing the user is interested in. Valid values include:

  • blended - request KML, Local Business Listings, and Geocode results
  • kmlonly - request KML and Geocode results
  • localonly - request Local Business Listings and Geocode results

Upvotes: 0

ceejayoz
ceejayoz

Reputation: 180137

The geocoder appears to be working fine here. I am able to get correct latitude/longitude results for the following queries:

  • Dimona
  • Dimona, Israel
  • Tel Aviv
  • Tel Aviv, Israel
  • Israel

Upvotes: 0

Chris B
Chris B

Reputation: 15834

Would the GoogleBar work for you? It won't return business results unless they're searched for. Here's an example.

UPDATE: If you ONLY want to search for addresses - the Geocoder is really your only option.

Upvotes: 1

ceejayoz
ceejayoz

Reputation: 180137

You'll need to take the latitude and longitude returned by the geocoder and display it as a marker on the map yourself. The geocoder API won't automatically generate a map for you.

Upvotes: 0

Related Questions