Google Maps in PHP without API Key - By Coordinates & By Address

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 173

  • @coding_ninja_technique
    @coding_ninja_technique 2 ปีที่แล้ว +1

    Thank you , Its exact example which I was Looking.

  • @devbyishtiaq
    @devbyishtiaq 4 ปีที่แล้ว +3

    what if we want 2 locations and we want to mark a line between those 2 locations?

  • @kikou56550
    @kikou56550 4 ปีที่แล้ว +3

    This is exactly what I was looking for ! Thanks a lot !

  • @SAM-rk2so
    @SAM-rk2so ปีที่แล้ว +1

    Thank you so much for this! ive been searching for this and finally got the right video. YOU DESERVE A SUBSCRIBE

  • @SurajKumar-wq4nv
    @SurajKumar-wq4nv 5 หลายเดือนก่อน

    thanks bro its very helpful to me and assignments 🙂

    • @AdnanAfzal565
      @AdnanAfzal565  5 หลายเดือนก่อน

      Glad to hear it.

  • @danielhaniyansasalim8244
    @danielhaniyansasalim8244 4 ปีที่แล้ว +5

    what if i want to know the longitude and langitude just using a spesific address?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +2

      For that, you need to use Google Maps API.

  • @mohammadshafi6768
    @mohammadshafi6768 2 ปีที่แล้ว

    Really Help ful.. Thank you
    It's solve my big issue. Thanks again

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว +1

      You are welcome.

    • @mohammadshafi6768
      @mohammadshafi6768 2 ปีที่แล้ว

      @@AdnanAfzal565 How can i contact you MR. Adnan Afzal ?

  • @geniushomwetv9793
    @geniushomwetv9793 ปีที่แล้ว

    very useful, thank you

  • @henakumari5632
    @henakumari5632 3 ปีที่แล้ว +1

    thankyou this was so helpful.

  • @sabarijayaraj5077
    @sabarijayaraj5077 3 ปีที่แล้ว +1

    Thank you so much bro, usefull content

  • @ziyaabbas4213
    @ziyaabbas4213 ปีที่แล้ว

    really impressive..
    could you please tell me how can I get latitude and longitude from the map location.

    • @AdnanAfzal565
      @AdnanAfzal565  ปีที่แล้ว

      Map location means string address ?

  • @avilferrao8434
    @avilferrao8434 2 ปีที่แล้ว

    thank you so much bro. Finally found it i have been looking for

  • @jirkauroon
    @jirkauroon 9 หลายเดือนก่อน

    Is it posible to make 2 adress the distance the total distance

  • @khaoulabaeza4672
    @khaoulabaeza4672 3 ปีที่แล้ว

    Woow very helpful thank uu!

  • @KrushnaNemade-k2q
    @KrushnaNemade-k2q 6 หลายเดือนก่อน

    can distance be calculated?
    between two coordinates without using API keys

    • @AdnanAfzal565
      @AdnanAfzal565  6 หลายเดือนก่อน

      Not in my knowledge. But you can use directions API and it requires API key.

  • @zenfujita7381
    @zenfujita7381 4 ปีที่แล้ว +2

    Thank you so much, it helps me a lot!
    Btw, how to show the map if the location is specific?
    (already used array to save the address)

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +2

      Are you receiving array with latitude and longitude ?

    • @zenfujita7381
      @zenfujita7381 4 ปีที่แล้ว

      @@AdnanAfzal565 Nope, I just need to show the address on the map

  • @melaniemurday3138
    @melaniemurday3138 ปีที่แล้ว

    OMG, thank you so much

  • @zimaremelaekt
    @zimaremelaekt 3 ปีที่แล้ว

    This is exactly what I was looking for! Thanks a lot!🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🥰🥰🥰🥰🥰🥰🥰

  • @dev-fabriciobr
    @dev-fabriciobr 2 ปีที่แล้ว

    do you have an example of with route of two points on the map? Thanks

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว +1

      No. That can be achieved using google maps api.

    • @dev-fabriciobr
      @dev-fabriciobr 2 ปีที่แล้ว

      @@AdnanAfzal565 Is there no solution to show 2 points on the map for free? Thanks

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      Not that I know. But you can search if you found any.

  • @lifeforce3451
    @lifeforce3451 3 ปีที่แล้ว

    very smart I didn't think to use but is it possible to add a parameter in the url to select the level of zoom like in javascript ?

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      Yes, you can pass "z=14" in the src attribute and it will be zoomed accordingly.

    • @lifeforce3451
      @lifeforce3451 3 ปีที่แล้ว

      after some search you have to add a z parameter , &z= (value between 1 to 20)

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      @@lifeforce3451 yes

  • @ifossofi
    @ifossofi ปีที่แล้ว

    I got it, thanks a lot!

  • @jacobadamfondevilla3134
    @jacobadamfondevilla3134 2 ปีที่แล้ว

    Please make a video how to RENEW or REPLACE a Google Map API

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      It is not possible to completely replace the google maps API. But you can get few features for free.

  • @phyusinlinlatt2589
    @phyusinlinlatt2589 4 ปีที่แล้ว

    Thank you for your video. For my project, I have to access user current location and save the address into database. How can I modify this?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You can get the location following this tutorial. And you can save it in database following: th-cam.com/video/UDmAlpYVwbU/w-d-xo.html this.

  • @jabesstanley6603
    @jabesstanley6603 2 ปีที่แล้ว

    wonderful indeed 🥰🥰🥰🥰 helpful

  • @conmarttube
    @conmarttube ปีที่แล้ว

    How to track deliver on map without google api keys

  • @arwahsapi
    @arwahsapi 2 ปีที่แล้ว

    Thanks friend! Can the src be manipulated with pure client-side JS without server-side PHP.?

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      Yes, it can be created with javascript from the following code:
      var = document.createElement("");
      .setAttribute("src", src);
      document.body.appendChild();

  • @MuhammadWafi
    @MuhammadWafi 3 ปีที่แล้ว

    Perfect ... thanks bro

  • @mouadnadzi
    @mouadnadzi 2 ปีที่แล้ว

    Please how to frame an area in map using coordinates ?!

  • @anakkecilkeren9015
    @anakkecilkeren9015 3 ปีที่แล้ว

    Thanks Master.. if you dont mind please teach me how to get distance from first address to destination. Jazakallah khoir

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว +1

      For that you need to use google places API.

  • @globalcommunity768
    @globalcommunity768 2 ปีที่แล้ว

    Thank you bro!

  • @mishajib7957
    @mishajib7957 4 ปีที่แล้ว

    thank you bro It helped me a lot...

  • @orpheustelos5561
    @orpheustelos5561 2 ปีที่แล้ว

    Thanks you sirrr!!

  • @dadisetiadi9766
    @dadisetiadi9766 2 ปีที่แล้ว

    thank you sir

  • @白水-o2r
    @白水-o2r 4 ปีที่แล้ว

    Excuse me, how to change the maps types to SATELLITE or TERRAIN?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You can try sending "type" in the URL as parameter.

  • @tricked5722
    @tricked5722 4 ปีที่แล้ว

    I can only use GET not POST otherwise i get "The POST method is not supported for this route. Supported methods: GET, HEAD." Im using laravel btw i dont know if that makes a diffrence and if so how do i fix this? Btw really nice simple video love this kinda style.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Thanks.
      You need to set your route to POST, like:
      Route::post()
      instead of:
      Route::get()

    • @tricked5722
      @tricked5722 4 ปีที่แล้ว

      @@AdnanAfzal565 Thanks man much love

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You're welcome :)

  • @yahayamohammed7405
    @yahayamohammed7405 4 ปีที่แล้ว

    It is really inspirational and helpful.
    Thank you for the elaboration.
    Sir, what of if I want Geolocate the area using a phone number, not only address?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Yes, for that you need to create an Android app. Android already provides an API for Geolocation.

  • @mamusthafa6
    @mamusthafa6 2 ปีที่แล้ว

    Very useful

  • @freefirecapture
    @freefirecapture 4 ปีที่แล้ว

    how we can save this longitude and latitude in database and then transfer to another user?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You can follow this to save in database:
      th-cam.com/video/oie6T8IVeMA/w-d-xo.html

    • @freefirecapture
      @freefirecapture 4 ปีที่แล้ว

      @@AdnanAfzal565 we are working on a mini project but we don't know how to share or show these coordinates to other user.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You can save in database with id of other user.

    • @freefirecapture
      @freefirecapture 4 ปีที่แล้ว

      @@AdnanAfzal565 and it can be displayed to other user?

  • @flextronteck7764
    @flextronteck7764 5 ปีที่แล้ว +1

    very nice brother

    • @flextronteck7764
      @flextronteck7764 5 ปีที่แล้ว

      bro can i see the map but not marker the my location please help me

  • @travelboots1403
    @travelboots1403 4 ปีที่แล้ว

    When I add Latt,Long the marker doesnt appear. when i give an exact address, it does.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +1

      There must be some error in your code. You need to follow this part carefully:
      th-cam.com/video/3yolzQ6JnAc/w-d-xo.html

  • @mohammadshafi6768
    @mohammadshafi6768 2 ปีที่แล้ว

    I have created the map with the Help of your code. it's good. but the thing is i have to show a message when the address is not complete. for example if the user type only city name and state or pincode then the map shows a polygon area. then how do i get to know that it's an incomplete address and need to proved complete address which shows pointer on the map.
    Any Help will be appreciable

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว +1

      For that, you need to use google maps API.

    • @mohammadshafi6768
      @mohammadshafi6768 2 ปีที่แล้ว

      @@AdnanAfzal565 any video on Google maps API from you

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      @@mohammadshafi6768 No sorry, I haven't created a video on that yet.

  • @shubhangiingle9872
    @shubhangiingle9872 2 ปีที่แล้ว

    Hello I am having array of latitude and longitude and I want plot it on the same map (multiple points on the one map). is it possible ? can you make video on it ? thanks in advanced

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      That can be done via google maps API.

  • @throwbackchannel6091
    @throwbackchannel6091 4 ปีที่แล้ว

    guru master thank you very much... can you create a video with sample database on it ...

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You're welcome.
      If you want to save latitude and longitude in database, you can follow this:
      th-cam.com/video/UDmAlpYVwbU/w-d-xo.html

  • @jungamaroli8567
    @jungamaroli8567 3 ปีที่แล้ว

    are the direction on the top right corner can be used? just like google maps?

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      Yes, it can be used via Directions API.

    • @jungamaroli8567
      @jungamaroli8567 3 ปีที่แล้ว

      @@AdnanAfzal565 so it will direct to google maps app or you can create your own directions?

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      On clicking that button you will be redirected to google maps. To create own directions, you need to use Directions API.

  • @7yearsago191
    @7yearsago191 3 ปีที่แล้ว

    Hello, can I use this one for the purpose of having a map that shows the exact location of a water sensor for example where the data input is coming from? Thank you!

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      Yes, if you get the coordinates of water sensor (latitude and longitude) then yes it can be used.

  • @tntgangcom
    @tntgangcom 3 ปีที่แล้ว

    i want the user to enter the country names and the system calculates the distance between them.can you help?

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      You can do this using Google Maps API:
      cloud.google.com/blog/products/maps-platform/how-calculate-distances-map-maps-javascript-api

  • @henakumari5632
    @henakumari5632 3 ปีที่แล้ว

    but can you also make a video for how to find nearby people on map with php

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      For that you need to use Google API. This tutorial is for without API.

  • @europoamerico7605
    @europoamerico7605 4 ปีที่แล้ว

    i'm using php on notepad++ and my localhost. But when i type an address and do submit. it don't fetch the address. it just refresh the browser and it goes back to display the world maps.In other words, it just display google maps but nothing else.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Try entering location in a specific way.
      What location are you trying to enter ?

    • @europoamerico7605
      @europoamerico7605 4 ปีที่แล้ว

      @@AdnanAfzal565 what i get is: '?>php echo $address;' in the map search box...question: do i need to change the editor?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      This is a syntax error. You can paste your code here, and I will correct the syntax.

    • @europoamerico7605
      @europoamerico7605 4 ปีที่แล้ว

      @@AdnanAfzal565.....

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      The syntax seems fine. The problem must be in location.
      Try entering your location here:
      adnan-tech.com/services/show-location-on-google-maps-from-address-or-coordinates/

  • @waffle14days
    @waffle14days 3 ปีที่แล้ว

    thank you

  • @oliviergousse2693
    @oliviergousse2693 2 ปีที่แล้ว

    Thanks a lot !

  • @OrenLikes
    @OrenLikes 4 ปีที่แล้ว

    Hi and thank you!
    I'd like to get latlng from an address,
    inside javascript (no PHP, jQuery, etc.),
    without API key.
    Unlimited, free, no registration, not necessarily google maps...
    Is it possible?
    var latlng=getLatLng(address);
    I want this to get a distance from a set address:
    var distance(HQLatLng, getLatLng(address));
    I can calculate on my own, but it would be nice if there's a function that does that.
    Thank you!
    PS. Without loading external scripts...

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      If you want a function that does this work, then you must need an external script.

    • @OrenLikes
      @OrenLikes 4 ปีที่แล้ว

      ​@@AdnanAfzal565
      Thank you.
      I'm trying to get LatLng from Chrome's console, maybe I can attach my script using TamperMonkey.
      I could get an external script with creatObject("script")...
      I'm not sure how to access it...
      I'm kinda using a webpage to which I have no control, reading it's data, and presenting only what I want to see.
      I wrote many scripts like this, but this one needs to get LatLng from somewhere... any suggestions? Again, I don't want to use API keys or be limited to 10 results per day - I need about 50 (for now) every time I open the page, which could be several times a day.
      I could do it manually, but it gets longer from time to time, and where's the fun in that?!? :)
      It shows a mini google map in an iFrame - which I cannot get the content of (cross-domain...).
      I can't use PHP because I'll need to open that external site in an iFrame or something = will not be able to access the data...
      Thank you, again!

  • @driilisertugul8320
    @driilisertugul8320 3 ปีที่แล้ว

    Sir Can We Find Location through upload video.I mean the up-loader of the video location. please sir tell me

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      For that you need to use navigator browser API to get the permission for accessing the location

    • @driilisertugul8320
      @driilisertugul8320 3 ปีที่แล้ว

      @@AdnanAfzal565 Can You Make Tutorial please Sir

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว

      You want to get the user’s location from browser permission, right ?

    • @driilisertugul8320
      @driilisertugul8320 3 ปีที่แล้ว

      @@AdnanAfzal565 yes sir can you help me

    • @driilisertugul8320
      @driilisertugul8320 3 ปีที่แล้ว

      @@AdnanAfzal565 Sir my final year project is crime reporting system. I want when someone upload crime scene video the police station find their location in map. Sir Plz Help me

  • @usoafreight2696
    @usoafreight2696 2 ปีที่แล้ว

    I wish I can find one video that shows human friendly workings of multiple address usage without api and no tolls. Why does everyone have to be overly-pragmatic with longitude and latitude? We live by Street number and name and the rest is handled

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      Yes. Using this tutorial, you will be able to find the address using simple text. Without API keys and without longitude or latitude.

  • @Spiderexe
    @Spiderexe 4 ปีที่แล้ว

    can i grab with PHP the latitude and longitude when i click on a location on the map?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Not using this script. You need to use google maps javascript API:
      developers.google.com/maps/documentation/javascript/tutorial

  • @lucianacoelho7716
    @lucianacoelho7716 4 ปีที่แล้ว

    Is this considered consuming and API?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +1

      No, it does not consume API.

  • @Bebe-sg4mg
    @Bebe-sg4mg 4 ปีที่แล้ว

    Thanks you are great♡i wanna ask you can i do that with laravel??

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +1

      Yes you can!

    • @Bebe-sg4mg
      @Bebe-sg4mg 4 ปีที่แล้ว

      @@AdnanAfzal565 i'm facing problems with routes..do i need to make route for the submit button separated from thr route for showing the map page..plz help me

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว +1

      Yes, you need to create a route and a controller function.

    • @Bebe-sg4mg
      @Bebe-sg4mg 4 ปีที่แล้ว

      @@AdnanAfzal565 thanks and sorry for all these questions but do you know any example similar to this would help me??

    • @Bebe-sg4mg
      @Bebe-sg4mg 4 ปีที่แล้ว

      @@AdnanAfzal565 i dont know what to put in the controller🥺🥺

  • @puneetdhiman3936
    @puneetdhiman3936 4 ปีที่แล้ว

    Thank you so much.

  • @princenogueira1618
    @princenogueira1618 11 หลายเดือนก่อน

    Good

  • @maraiiamina3575
    @maraiiamina3575 3 ปีที่แล้ว

    is there a Laravel version?

    • @AdnanAfzal565
      @AdnanAfzal565  3 ปีที่แล้ว +1

      No, but it is in core php, so it can be used with laravel.

  • @edgiegarcia
    @edgiegarcia 4 ปีที่แล้ว

    hi, great video! will i be able to get the distance bet 2 addresses using your script?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Yes.

    • @edgiegarcia
      @edgiegarcia 4 ปีที่แล้ว

      @@AdnanAfzal565 bro i am your avid fan. i knew only basic in php etc. if you can help me out like modifying this form when entering two addresses will show the result of getting the direction distance and time would be grately appreciated. thank you.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      For this you need to use geolocation API in javascript.

  • @RishiRaj-ht8ry
    @RishiRaj-ht8ry 4 ปีที่แล้ว

    How to display more than one location at the same time

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      If you want 2 locations, you can display one location via coordinates and second via location name. But if you want more than 2 locations, then it would be possible only via Google Maps Developer Guide:
      developers.google.com/maps/documentation/javascript/tutorial

  • @freefirecapture
    @freefirecapture 4 ปีที่แล้ว

    how do i get this source code?

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      You can get from link in the description.

    • @freefirecapture
      @freefirecapture 4 ปีที่แล้ว

      @@AdnanAfzal565 there is no source code, only link of picture.

    • @freefirecapture
      @freefirecapture 4 ปีที่แล้ว

      @@AdnanAfzal565 sorry it was there, i got it.

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      :)

  • @PCNPromoproinc88
    @PCNPromoproinc88 4 ปีที่แล้ว

    how can you display a complete address (#number, street,city) using the coordinates method? ex: 14.583679575552239, 120.97416324671451 (# 84 dapitan st., Intramuros Manila)
    '

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      For that, you need to use Google Maps API.

  • @Mr.Albertos
    @Mr.Albertos ปีที่แล้ว

    Genial.

  • @hindviswarajy
    @hindviswarajy 2 ปีที่แล้ว

    Can anyone send this code

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      You can get it from link in the description.

    • @hindviswarajy
      @hindviswarajy 2 ปีที่แล้ว

      @@AdnanAfzal565 that show msg "file not found"

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      Let me check.

    • @AdnanAfzal565
      @AdnanAfzal565  2 ปีที่แล้ว

      Kindly check now. The file has been uploaded.

  • @satheeshchowdary6518
    @satheeshchowdary6518 4 ปีที่แล้ว

    not working

    • @AdnanAfzal565
      @AdnanAfzal565  4 ปีที่แล้ว

      Check your browser console and let me know what error you are facing ?

    • @yahayamohammed7405
      @yahayamohammed7405 4 ปีที่แล้ว

      @@AdnanAfzal565 Please, I want you to guide me on how to be perfect on this profession

  • @luvcitedigitalmarketingage840
    @luvcitedigitalmarketingage840 2 ปีที่แล้ว

    Thank You