Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Donald Eric Pimpler, Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

Table of Contents (22 chapters)
Programming ArcGIS with Python Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Geocoding with the Esri World Geocoding Service


The Esri World Geocoding Service can be used to find addresses and places in supported countries. This service contains both free and paid operations. The find operation, which finds one address per request, is always a free service. The geocodeAddresses operation accepts a list of addresses for geocoding and is a paid service only. The other operations can be free or paid. If you are using the operations in a temporary capacity, they are free. Temporary simply means that you aren't storing the results for later use. If this is the case, then it is a paid service. In this recipe, you will use the Esri World Geocoding service to geocode an address.

Getting ready

The ArcGIS REST API find operation can be used to find the geographic coordinates of a single address. As we've done in the past few recipes, we'll use the Python requests module to make the request and process the response.

How to do it…

  1. In IDLE or another Python development environment...