We use cookies, including third party cookies, to improve your experience and for marketing purposes. By continuing to browse we assume you have consented to their use.Learn more
got it
All tutorials

PHP

intermediate

This what3words PHP wrapper gives you programmatic access to the what3words API V3.

The what3words API is a fast, simple interface which allows you to convert 3 word addresses such as ///filled.count.soap to latitude and longitude coordinates such as (-0.203586, 51.521251) and vice versa. It features a powerful AutoSuggest function that can validate and autocorrect user input and limit it to certain geographic areas (this powers the search box on our map site). The API allows you to request a section of the what3words grid (which can be requested as GeoJSON for easy display on online maps), and to request a list of all current languages supported by what3words. For advanced users, AutoSuggest can be used to post-process voice output. See links on the left to navigate.

All coordinates are latitude,longitude pairs in standard WGS-84 (as commonly used worldwide in GPS systems). All latitudes must be in the range of -90 to 90 (inclusive).

Related tutorials

Back to top