views:

976

answers:

4

hello

i rewrite the message for better understandnig

how can i search for address only using google map api.

if i will search for adderss i dont want google give a bussiness with the same name of the address ( i don't want to get bussiness at all)

thanks for your help.

A: 

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.

ceejayoz
thenk for quick responsebut its not what i ment.i want to search for address using the google api.but not throw the geocoding because its not giving good results
avnic
I have a lot of experience with the google maps api, could you post your code?
andrewWinn
@avnic Without some example addresses and knowing what you're hoping to get back from the geocoder, we can't help you very much.
ceejayoz
+1  A: 

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.

Chris B
@ chris even if they will search for business i don't want to show on the map
avnic
avnic
Entering "Dimona, Israel" into this Google geocoder tester worked just fine. http://www.coldfusionjedi.com/demos/googlegeocode/test.cfm (returned lat/long of 34.9484000,31.0950000). Same thing for "Tel Aviv, Israel" - 34.7595000,32.0554000.
ceejayoz
dimona in israel is a city and also street name . you got the city in your search.sorry that i confuse you but you can try israel,tel aviv,balfour balfour is only a street.
avnic
A: 

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
ceejayoz
A: 

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
Chris B