Letโs improve the code, if you paste the code into the browser, then you will be redirected to Google maps and show the result that you requested.
http://maps.google.com/maps?&q=Space+Needle,Seattle+WA
If you want to pass the value (address) via php or any other type of code, then it just wonโt work, you wonโt be able to use Google maps without an API to increase your requirement. Lat and Lng is a basic practice for displaying a map and does not require any api, but if you want to pass additional properties, you will have to use google maps api for this. Detailed documentation can be found here.
https://developers.google.com/maps/documentation/embed/guide
but try an example try this code in a browser
https://www.google.com/maps/embed/v1/place?q=Mumbai,+Maharashtra,+India
You will receive an error message that was not found, but if you try this
https://www.google.com/maps/embed/v1/place?key=AIzaSyD4iE2xVSpkLLOXoyqT-RuPwURN3ddScAI&q=Space+Needle,Seattle+WA
Then you will get the result. Hope this helps!
source share