Completed

Servicem8 customer to google maps automatically

Job Description:

Project Requirements:

Plot customer locations on a map using the Google Maps JavaScript API

Retrieve customer data from ServiceM8 and map it in Google Maps

Automate the process to regularly update the map

Steps:

Obtain a Google Maps API key from the Google Cloud Console

Retrieve customer data from ServiceM8 using an API call

Plot the customer locations on a map using the Google Maps JavaScript API

Include the Google Maps JavaScript API in the HTML file:

php

Copy code

<script src="[login to view URL]"></script>

Create a map using the Google Maps JavaScript API:

php

Copy code

<div id="map" style="height:500px; width:100%;"></div>

<script>

var map;

function initMap() {

map = new [login to view URL]([login to view URL]('map'), {

center: {lat: -34.397, lng: 150.644},

zoom: 8

});

}

</script>

<script src="[login to view URL]" async defer></script>

Store the customer data in a JavaScript array

Plot the customer locations on the map using a loop and the [login to view URL] object:

php

Copy code

[login to view URL](function(customer) {

var marker = new [login to view URL]({

position: { lat: [login to view URL], lng: [login to view URL] },

map: map,

title: [login to view URL]

});

});

Automate the process using a scheduling tool such as cron or the Task Scheduler to regularly retrieve customer data and update the map

Skills: JavaScript, Google Maps API, PHP, Software Architecture, jQuery / Prototype

About the Client:
( 5 reviews ) North Bayswater, Australia

Project ID: #35928522

Awarded to:

omera1

Hi, I am available to work on this project if you like you can discus with me in private message I start work asap.

$70 AUD in 2 days
(32 Reviews)
5.3

9 freelancers are bidding on average $160 for this job

isyncevolution

Hi there, I am fullstack developer and would like to work on your project. let me know Is there a specific format or structure for the customer data? Skills: WordPress, Woocommerce, Custom PHP, CodeIgniter, Yii, Magen More

$140 AUD in 7 days
(100 Reviews)
8.3
AlexBodnaryk

Hello , I just read your job posting and it sounds like you need PHP, jQuery / Prototype, Google Maps API, JavaScript and Software Architecture. I am a senior developer and have been working in this field 4+ years. I'm More

$150 AUD in 5 days
(5 Reviews)
5.1
devastatingram

Hello, Nice meet you! I have read your project requirements and then I am sure I can complete that project. I can help you. Thank you.

$140 AUD in 7 days
(2 Reviews)
1.9