Address to Lat Long Free

洪健翔 Hung, Chien-hsiang
2 min readSep 20, 2022


Photo by Robert Penaloza on Unsplash

Find lat long coordinates

QGIS Geocoding Plugins (Free)

the Python Geocoder is another open-source library that leverages Python to retrieve lat long coordinates from Google Maps. One of its advantages is that it can be used completely separately from QGIS.

Python Geocoder

Simple and consistent geocoding library written in Python.

Many online providers such as Google & Bing have geocoding services,
these providers do not include Python libraries and have different
JSON responses between each other.

It can be very difficult sometimes to parse a particular geocoding provider
since each one of them have their own JSON schema.

Here is a typical example of retrieving a Lat & Lng from Google using Python, things shouldn’t be this hard.

>>> import requests  
>>> url = ''
>>> params = {'sensor': 'false', 'address': 'Mountain View, CA'}
>>> r = requests.get(url, params=params)
>>> results = r.json()['results']
>>> location = results[0]['geometry']['location']
>>> location['lat'], location['lng']
(37.3860517, -122.0838511)

Now lets use Geocoder to do the same task

>>> import geocoder  
>>> g ='Mountain View, CA')
>>> g.latlng
(37.3860517, -122.0838511)


The World Geocoding Service finds addresses and places in all supported countries from a single endpoint. The service can find point locations of addresses, business names, and so on. The output points can be visualized on a map, inserted as stops for a route, or loaded as input for a spatial analysis. an address, retrieving imagery metadata, or creating a route.


>>> import geocoder
>>> g = geocoder.arcgis('Redlands, CA')
>>> g.json

This provider may return multiple results by setting the parameter maxRows to the desired number (1 by default). You can access those results as described in the page ‘Access to geocoder results’.

Command Line Interface

$ geocode 'Redlands, CA' --provider arcgis


  • location: Your search location you want geocoded.
  • maxRows: (default=1) Max number of results to fetch
  • limit: Deprecated, same as maxRows
  • method: (default=geocode) Use the following:
  • geocode


Usage Example

A handy tool to get lat long from address, helps you to convert address to coordinates (latitude longitude) on map, also calculates the gps coordinates.