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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:37:32+00:00 2026-05-18T00:37:32+00:00

Given a street, city, lat/long, and zip, how do you create an anchor link

  • 0

Given a street, city, lat/long, and zip, how do you create an anchor link to a Google Map?

Following a Gmap result, I tried to mimic the link it gave. So far, I have tried:

$street = str_replace(' ', '+', $location['street']);
$street = str_replace('#', '%23', $street);
$city = str_replace(' ', '+', $location['city']);
$state = str_replace(' ', '+', $location['state']);
$zip = $location['zip'];
$lat = $location['lat'];
$long = $location['long'];

$map = 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q='.$street.'+'.$city.'+'.$state.'&sll='.$lat.','.$long.'&ie=UTF8&hq=&hnear='.$street.',+'.$city.',+'.$state.',+'.$zip.'&ll='.$lat.','.$long;

Sometimes it works, other times I get “We could not understand your request”. Does anyone know of a way to make this work for any result?

  • 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-18T00:37:33+00:00Added an answer on May 18, 2026 at 12:37 am

    I’ve always simplified it down to just the query (q) and i’ve never had an issue

    http://www.google.com/maps?q=address(tooltip/infowindow title)
    

    whatever you put in the () will be the tooltip text and the title for the infowindow

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

Sidebar

Related Questions

I'm trying to make a street panorama of a given location on a map.
I am trying to create a query using hibernate following the example given in
Given relational schema: Emp(e_name, street, city) Works_for(e_name, company_name, salary) Company(company_name, city) Manages(e_name, manager_name) Query:
Given the DTD file below : !ELEMENT hotels (address+)> <!ELEMENT address (city,street,phone,hotelDetails)> <!ELEMENT hotelDetails
Given a function y = f(A,X): unsigned long F(unsigned long A, unsigned long x)
Given the following console output, why is my Core Data save failing? It seems
I'm returning this response from my server: callback({City: Miami, State: FL, Street: 9th Street,
Given the following classes and controller action method: public School { public Int32 ID
how could I make a nice search result like google I cannot wrap my
given the following query: {ResultSet:{version:1.0,Error:0,ErrorMessage:No error,Locale:us_US,Quality:40,Found:1,Results:[{quality:40,latitude:37.777125,longitude:-122.419644,offsetlat:37.777125,offsetlon:-122.419644,radius:10700,name:,line1:,line2:San Francisco, CA,line3:,line4:United States,house:,street:,xstreet:,unittype:,unit:,postal:,neighborhood:,city:San Francisco,county:San Francisco County,state:California,country:United States,countrycode:US,statecode:CA,countycode:,uzip:94102,hash:,woeid:2487956,woetype:7}]}} how

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.