Google Maps Data Extractor Documentation by Najmul Iqbal v1.0


Extract Data from Google Maps

Created: 10/29/2023
By: Najmul Iqbal
Email: iqbengsolution@gmail.com

Thank you for your interest in my script. Please click here to download this code. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Overview
  2. Features
  3. How To Use?
  4. Configure the API Key
  5. Video Demo
  6. Our Portfolio

A) Overview - Top

Google Maps Address Extractor is a JavaScript code that extract addresses under a polygon, rectangle or circle using Google Maps API. The extracted addresses can be downloaded in CSV format. You can specify which fields (street, city, state, country or postal code) to extract. You can specify the language of the addresses to extract.


B) Features - Top

  1. It extracts addresses under a polygon.
  2. It extracts addresses under a rectangle.
  3. It extracts addresses under a circle.
  4. It uses Google Maps JavaScript and Reverse Geocoding APIs.
  5. It utilizes the drawing library to draw polygon, rectangle or circle.
  6. You can specify which fields (street, city, state, country or postal code) to extract.
  7. You can download the result in CSV format.
  8. You can specify the language of the addresses as well.
  9. It uses the bootstrap UI.

C) How To Use? - Top

  1. Specify the Options:

    • Click the Options link from the navigation bar.
    • Select the language in which to extract the addresses.
    • Enter the distance in meters. This is very important here. If you specify 20 as distance, then it will get each point within the polygon/circle/rectangle at the distance of 20 meters and reverse geocode it to get its address. If you specify lower value (e.g. 5 or 10), then it will extract almost all addresses. If you specify a large value (e.g. 500), then there is a chance that some addresses will be skipped. We have made this value configurable so that end user would be able to decide this as per their requirements based on different areas. As there is no built-in feature to extract all addresses under a polygon/circle/rectange, therefore, we are using this algorithm. Please note that if you specify a small value (e.g. 5 or 10 meters), then it will send large number of requests to geocoding API. In case if smaller value, there is a chance that duplicate addresses are extracted, however, our algorithm will remove the duplicates and will download the unique addresses only. Also, if you need to extract all addresses from a large area (e.g. a city or town), we suggest to do this in multiple steps i.e. select smaller areas and download its addresses. It is recommended because if you want to extract large number of addresses and if the process is in the middle and you accidently close the browser window or refresh the page, then you will lose the already processed data. Therefore, we recommend to extract addresses from smaller areas and then download them.
    • From the Options dialog, select the fields (street number/name, city, state, country, postal code etc.) that you want to extract and download.
    • After specifying all the options, click OK button.
  2. Draw a Polygon:

    If you want to extract addresses under a polygon, then click Draw Polygon and draw the polygon on the required area of the map.
  3. Draw a Rectangle:

    If you want to extract addresses under a rectangle, then click Draw Rectangle and draw the rectangle on the required area of the map.
  4. Draw a Circle:

    If you want to extract addresses under a circle, then click Draw Circle and draw the circle on the required area of the map.
  5. Extract Addressses:

    Click the Extract Addresses link from the navigation bar to start the process of extracting the addresses. It will show the progress as addresses are being extracted. Once the process is completed, then the progress dialog will close.
  6. Download CSV:

    Click the Download link to download the CSV file containing all the addresses extracted.

D) Configure the API Key - Top

  1. Go to your developer console.
  2. Generate your Google Maps API Key.
  3. Please note to enable billing.
  4. Also enable JavaScript Maps API and Geocoding API.
  5. Open index.html page.
  6. Add your key in the following line (replace YOUR_API_KEY with your Google Maps API key):
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key=YOUR_API_KEY"></script>

E) Video Demo - Top

Please click the play button below to view the video demo.


F) Our Portfolio - Top

We also have other useful utilities, plugins and software products. Please click here to see our portfolio.


Once again, thank you so much for your interest in this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Najmul Iqbal

Go To Table of Contents