Google maps Geolocation Codeigniter Full Script

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • What You Will Learn In This Tutorial ?
    -Find Your Location with Geolocation API
    -Integrate Geolocation with Google Map To Display Your Location On Google Map
    -Store get coordinates from google maps in database mysql
    -Find Nearest Locations to Your Location With Mysql
    -Display locations dynamically with google markers
    -draw circle around all markers
    -Use info window dynamically to display users information
    -Pick up latitude and longitude from markers and geolocation to input form or ajax request
    - integrate all these features with codeigniter
    - See more at: webeasystep.com...
    geolocation google maps
    google geolocation api example
    how to use google map api in php
    geolocation ip
    html5 geolocation api
    how to know longitude and latitude in google maps
    get current location google maps api
    get current location google maps javascript
    geolocation address
    geolocation meaning
    google geolocation api ip address
    google map in php
    using php/mysql with google maps
    creating a store locator with php, mysql & google maps
    google map in php demo
    google maps php mysql demo
    google map php mysql store locator
    google map api php example code
    google map with php mysql
    google maps multiple markers php mysql
    how to show multiple locations on google maps using php
    google map source code php

Комментарии • 68

  • @davidgannon2406
    @davidgannon2406 7 лет назад

    Hi and thank you for the video . In my mymaps Is it possible to have pins automatically open to display their info when i enter their pre-defined radius? Foe example , a user is in my custom mymaps while travelling on a bus , as he passes through each radius the pin info of each pin iassisgned to each particualr radius opens automactically to reveal its info ? Thank u

  • @golostruda
    @golostruda 5 лет назад

    Thanks man I´ll try to adapt something to my situation!!! Good job!!!

  • @sultanasultana2556
    @sultanasultana2556 4 года назад +1

    Hello Sir, great tutorial..
    i would like to know how you are saving lat and lan in database using codeigniter..

  • @leandropoma9865
    @leandropoma9865 5 лет назад +1

    this error appears ........
    An error has occurred.
    This page has not loaded Google Maps correctly. Discover the technical details of the problem in the JavaScript console.
    how can I solve that..?

    • @Webeasystep
      @Webeasystep  5 лет назад

      Leandro Poma can you explain what error appears in the console

  • @Walee081
    @Walee081 7 лет назад +2

    Asslamoalikum brother if do not want to do that code in code igniter framework just in simple php then what i have to do. kindly give me instructions

    • @Webeasystep
      @Webeasystep  7 лет назад

      وعليكم السلام ورحمه الله اخي كريم ، يمكنك تحميل الكود بالكامل من الوصف

  • @shalinia7458
    @shalinia7458 5 лет назад

    Message: Class 'CI_Google_maps' not found
    this error comming what to do

  • @TheIndianTraveller
    @TheIndianTraveller 7 лет назад +1

    i have a issue with bootstrap is not loading it is taking my interest but not showing me market and a good layout.

    • @Webeasystep
      @Webeasystep  7 лет назад +1

      it is because of your $config['base_url'] in the config file, please change it to your project name and it will work good

    • @TheIndianTraveller
      @TheIndianTraveller 7 лет назад +1

      i changed the directory name in base config thankyou you replied

  • @FranciscoPerez-mh4sb
    @FranciscoPerez-mh4sb 2 года назад

    Gracias!!! desde Chile te mando un gran saludo!!!

  • @kkmedia9194
    @kkmedia9194 6 лет назад

    how do you set this folders and load in linux Ubuntu because its indicating for me that Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    • @Webeasystep
      @Webeasystep  6 лет назад

      sorry i have no experience with linux

  • @productmanagementsymphony6891
    @productmanagementsymphony6891 6 лет назад

    im getting this >> ReferenceError: google is not defined
    could you help plz

  • @pareesabashir2707
    @pareesabashir2707 6 лет назад +1

    why we need to Find Nearest Locations to our Location With Mysql ?

    • @Webeasystep
      @Webeasystep  6 лет назад

      in situations like searching for the nearest service providers

  • @diangema8598
    @diangema8598 7 лет назад +1

    hi sir, can i ask you a question about google nearest marker map? ive been try this, but in my computer the marker and the nearest location cannot appear, please help me sir, thank you

    • @Webeasystep
      @Webeasystep  7 лет назад

      Yes, this is true because you should update the table by nearest latitudes and longitudes to your current location; I tested it in the video after adding some nearest latitudes and longitudes to my current location, so to fix this
      1- Get your current latitude and longitude
      2- Add some nearest latitudes and longitudes in the table
      3- Test again, and it will works

    • @diangema8598
      @diangema8598 7 лет назад

      a already added 1 location but it still not working sir, can you help me please

  • @yojerry11
    @yojerry11 6 лет назад +3

    Hello there.. Great tutorial.. I need your help with a similar matter.. Is there anyway i can contact you? On any social media..

    • @just4tut
      @just4tut 6 лет назад

      hello bro ,you can contact through my website or my facebook page

  • @jayshah8271
    @jayshah8271 6 лет назад

    Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /opt/lampp/htdocs/map_ci_new/application/config/config.php on line 355 error when i just reach on 4:50

    • @Sewrrah
      @Sewrrah 6 лет назад

      same with me

    • @marshallchaterera2069
      @marshallchaterera2069 5 лет назад

      Hello. Use this code below, to solve that problem:
      spl_autoload_register(function($class) {
      if (file_exists(APPPATH."core/".$class.'.php')) {
      include_once(APPPATH."core/".$class.'.php');
      }
      });

    • @fajarhidayat1663
      @fajarhidayat1663 4 года назад

      @@marshallchaterera2069 thankyou, that's work

  • @cindysday
    @cindysday 6 лет назад +1

    I'm totally lost. Please explain exactly what I can achieve by doing this. Thank you !

    • @Webeasystep
      @Webeasystep  6 лет назад

      you can achieve the following
      -Find Your Location with Geolocation API
      -Integrate Geolocation with Google Map To Display Your Location On Google Map
      -Store get coordinates from google maps in database mysql
      -Find Nearest Locations to Your Location With Mysql
      -Display locations dynamically with google markers
      -draw circle around all markers
      -Use info window display users information
      -Pick up latitude and longitude from markers and geolocation to input form or ajax request

  • @darkangle4614
    @darkangle4614 6 лет назад

    ايضا يوجد بعض النقص بالكود ci_sessions الجدول هذا فاضي مابه شي انا استخدم appserv يعني هل يوجد مشكلة لو ماني مستخدم xampp

    • @Webeasystep
      @Webeasystep  6 лет назад

      اهلا يا اخي الكريم..يمكنك تحميله من هنا
      bitbucket.org/webeasystep/codeigniter_paypal/src/07185c3e3df7a8fef59547fd160bfe3dd6548e46/application/tables/ci_sessions.sql?at=master&fileviewer=file-view-default

  • @hamzaberouayel9860
    @hamzaberouayel9860 6 лет назад

    sir can u help me i ve this error Fatal error: Class 'Front_end' not found in C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php on line 6

    • @Webeasystep
      @Webeasystep  6 лет назад

      insure that you have Front_End class in the core folder or replace line 6 with
      class Services extends CI_Controller

    • @hamzaberouayel9860
      @hamzaberouayel9860 6 лет назад +1

      sir thank you for the help but i have other problem if u can help me more sir
      An uncaught Exception was encountered
      Type: Error
      Message: Call to undefined method Services::view()
      Filename: C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php
      Line Number: 28
      Backtrace:
      File: C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php
      Line: 21
      Function: book_service
      File: C:\xampp\htdocs\codeigniter-nearest-markers-map\index.php
      Line: 293
      Function: require_once

    • @Webeasystep
      @Webeasystep  6 лет назад

      change it to
      copy the view file from the core/Front_end.php to your controller

    • @hamzaberouayel9860
      @hamzaberouayel9860 6 лет назад

      sorry sir can u tell me more cause i still have the same problem

    • @hamzaberouayel9860
      @hamzaberouayel9860 6 лет назад

      thx sir it s work thx for the help

  • @darkangle4614
    @darkangle4614 6 лет назад

    ياتيني رسالة خطا او ان الكود ناقص Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\project\webeasystep-codeigniter-nearest-markers-map-7b9369e14c71\system\core\Log.php on line 176

    • @Webeasystep
      @Webeasystep  6 лет назад

      هذي مشكلة تابعة لسيرفرك ياصديقي ومع ذلك يمكنك استخدام date.timezone وتفاصيلها من هنا
      php.net/manual/en/class.datetimezone.php

  • @mahmoudnoby6204
    @mahmoudnoby6204 7 лет назад +1

    السلام عليكم شكرا للشرح ..لو سمحت لو كنت عايز اضيف اكتر من مكان ف اكتر من دوله في نفس الوقت اعمل ايه

    • @Webeasystep
      @Webeasystep  7 лет назад +1

      وعليكم السلام ورحمه الله ، معلش مفهمتش السؤال.. يعني ايه تضيف اكتر من مكان،قصدك تضيف اكتر من marker ؟
      لو ده قصدك فالشرح ال في الفيديو بيعرفك ازاي تضيف اكتر من marker علي نفس الخريطة

    • @mahmoudnoby6204
      @mahmoudnoby6204 7 лет назад +1

      اه اقصد اكثر من marker
      مع العلم ان الداتا بتتغير كل فتره
      (alt , long)
      فهل اعرف اعمل كده
      ف الاول شكرا للاهتمام والرد

    • @Webeasystep
      @Webeasystep  7 лет назад +1

      هذا السؤال قد سألته من قبل وقمت بالرد عليه ..لذا سأنسخ لك ردي السابق لأعتقادي بتشابه الفكرة ولعله يفيدك..
      الفكرة ببساطة يمكن تطبيقها من خلال طريقتين ...اما الأولي فهي غير عملية ولكن تصلح للتطبيقات البسيطة جدا جدا..وذلك ان تقوم بعمل جدول يقوم بتخزين id السيارة-خط الطول latitude- خط العرض longtuide وتربطه بسيرفس وليكن اسمها post_location - ويقوم الشخص القائد لسيارة الاسعاف بفتح ال Gps بشكل اجباري من محموله وهنا يقوم التطبيق بأخذ الموقع وارساله للسيرفس Post_location والتي بدورها تقوم بتخزينه في الداتا بيز..علي ان يتم ذلك بأمر في الخلفية thread داخل الموبايل يقوم بارسال الموقع كل فترة قصيرة وليكن 20 ثانية..ومن خلال الموقع يمكنك عمل خريطة بجوجل ماب وربطها ب AJAX عن طريق دالة جافا سكربت setInterval والتي تقوم بجلب احدث النتائج كل فترة 20 ثانية لتقوم بتحديث الخريطة.

    • @mahmoudnoby6204
      @mahmoudnoby6204 7 лет назад +1

      شكراا جدا

  • @diangema8598
    @diangema8598 7 лет назад +1

    a already added 1 location but it still not working sir, can you help me please

    • @Webeasystep
      @Webeasystep  7 лет назад

      the location should be about 30 kilometer near from your location,for more info you should use console to debug the code ,open the chrome console see what happened and if you stick with an error copy and paste here

    • @diangema8598
      @diangema8598 7 лет назад

      Ok sir thank you very much,i will try it ... :-)

    • @diangema8598
      @diangema8598 7 лет назад +1

      this is the error sir :
      Uncaught ReferenceError: google is not defined
      at (index):99
      bootstrap.min.js:7 Uncaught Error: Bootstrap tooltips require Tether (github.hubspot.com/tether/)
      at bootstrap.min.js:7
      at bootstrap.min.js:7
      at bootstrap.min.js:7
      jquery.js:8630 POST localhost/codeigniter-nearest-markers-map/services/closest_locations 500 (Internal Server Error)

    • @Webeasystep
      @Webeasystep  7 лет назад

      your problem with 500 means you call a wrong path it till you that there is nothing with this name ,to fix this
      change services/closest_locations to the correct controller and method

    • @diangema8598
      @diangema8598 7 лет назад

      ok sir but from the first time i didnt change anything about the code , what i should do sir ?

  • @sittichonaungkutranon7374
    @sittichonaungkutranon7374 7 лет назад +1

    Thank you, for very good.

  • @JamalAbo
    @JamalAbo 7 лет назад

    حرام عليك تحكي انجليزي😂😅،
    بس برضو كل الاحترام وممكن طريقة اظهار الاماكن القريبه يعني اوخذ الوكيشن تاع اليوزر و اجيبلو اقرب اماكن علي ( انا بعينها ) لبعد كيلومتر مثلا؟

  • @darkangle4614
    @darkangle4614 6 лет назад

    لو سمحت ممكن تعطيني اي برنامج تواصل اجتماعي عشان عندي مشاكل كثيره بالكود

  • @agusrsiahaan3259
    @agusrsiahaan3259 7 лет назад +1

    the bootsrapt is not loading up

    • @Webeasystep
      @Webeasystep  7 лет назад

      it is because of your $config['base_url'] in the config file, please change it to your project name and it will work good

    • @agusrsiahaan3259
      @agusrsiahaan3259 7 лет назад +1

      Thank You...

    • @Webeasystep
      @Webeasystep  7 лет назад

      You are welcome dude :)

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Make more videos on Google maps

    • @Webeasystep
      @Webeasystep  6 лет назад

      thanks Nabeel for recommendation , i publish a new tutorial today about google maps alternative ,i hope you enjoy watching :)

  • @himthakur619
    @himthakur619 5 лет назад

    This api is free or not?

    • @Webeasystep
      @Webeasystep  5 лет назад

      If you mean Google maps, yes it is free but limited , you can use mab box as alternative,as a side note I have another serise for mapbox in this channel

    • @himthakur619
      @himthakur619 5 лет назад

      @@Webeasystep api which is used in above video? Is free?

  • @willyasyraf
    @willyasyraf 3 года назад

    well so.