Use this endpoint to lookup addresses closest to the input coordinates.
Reverse GeoCoder
The Reverse GeoCoder Cloud API provides the closest valid address(s), based on an input latitude and longitude. You can set the distance from the input coordinates (to reduce the number of returned output addresses) and a maximum number of records to be returned by the service.
Reverse GeoCoder can be used to:
- Create a mailing list within a specific radius for targeted marketing.
- Use in mobile apps for emergency location purposes & provide roadside help.
- Identify the closest valid address(es) based on an input latitude and longitude
- Provide the closest Postal Code(s), Carrier Route(s) or Plus4(s) based on an input latitude and longitude.
- Create a dealer locator: Provide the closest valid address, Melissa Address Key (MAK) and distance from a provided list of MAKs based on an input latitude and longitude or MAK.
Documentation
Useful Resources
Product Page
Support Center
Transmission Reference - Serves as a unique identifier for this set of records.
The License Key issued by Melissa.
Maximum Distance - The requested maximum distance in miles.
Options - Specify which options to use for the selected action. List of options in <OptionName>:<Parameter> format. Multiple options are delimited with a ,.
For example: OptionName:Parameter,OptionName:Parameter.
Level:< CarrierRoute | Plus4 | PostalCode >- This option specifies the level of data to search. Depending on which parameter you set forLevel, you can return the ZIP, ZIP+4, or ZIP and Carrier Route with your records.CarrierRoute- Two fields are returned for each record:- PostalCode: A 5-digit postal code
- CarrierRoute: the nearest Carrier Route.
Plus4- Two fields are returned for each record:- PostalCode: a 9-digit ZIP+4 Postal Code.
- CarrierRoute: the nearest Carrier Route.
PostalCode- Default. Returns the nearest 5-digit Postal Code.
- Reverse GeoCoder Serverhttps://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes
- curl
- C#
- Python
- Java
- JavaScript
- Node.js
- PHP
- Go
- Ruby
- R
- C#+Newtonsoft
- Java8+Apache
- Payload
curl -i -X GET \
'https://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes?id={REPLACE-WITH-YOUR-LICENSE-KEY}&lat=33.63756710910554&long=-117.60695049134513'Successful response
- application/json
- application/xml
Lists error codes from any errors caused by the most recent request as a whole. For more information, see Reverse GeoCoder Result Codes.
Comma delimited status, error codes, and change codes for the record. For more information, see Reverse GeoCoder Result Codes.
{ "Version": "6.2.0.5179", "TransmissionReference": "", "TransmissionResults": "", "Results": "GS07", "TotalRecords": 1, "Records": [ { … } ] }
- application/json
- application/xml
The License Key issued by Melissa.
Options - Specify which options to use for the selected action. List of options in <OptionName>:<Parameter> format. Multiple options are delimited with a ,.
For example: OptionName:Parameter,OptionName:Parameter.
Level:< CarrierRoute | Plus4 | PostalCode >- This option specifies the level of data to search. Depending on which parameter you set forLevel, you can return the ZIP, ZIP+4, or ZIP and Carrier Route with your records.CarrierRoute- Two fields are returned for each record:- PostalCode: A 5-digit postal code
- CarrierRoute: the nearest Carrier Route.
Plus4- Two fields are returned for each record:- PostalCode: a 9-digit ZIP+4 Postal Code.
- CarrierRoute: the nearest Carrier Route.
PostalCode- Default. Returns the nearest 5-digit Postal Code.
- Reverse GeoCoder Serverhttps://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes
- curl
- C#
- Python
- Java
- JavaScript
- Node.js
- PHP
- Go
- Ruby
- R
- C#+Newtonsoft
- Java8+Apache
- Payload
curl -i -X POST \
https://reversegeo.melissadata.net/v3/web/ReverseGeoCode/doLookupPostalCodes \
-H 'Content-Type: application/json' \
-d '{
"CustomerId": "{REPLACE-WITH-YOUR-LICENSE-KEY}",
"Latitude": "33.63756710910554",
"Longitude": "-117.60695049134513",
"MaxDistance": "10",
"MaxRecords": "",
"Options": "",
"TransmissionReference": "Test"
}'Successful response
- application/json
- application/xml
Lists error codes from any errors caused by the most recent request as a whole. For more information, see Reverse GeoCoder Result Codes.
Comma delimited status, error codes, and change codes for the record. For more information, see Reverse GeoCoder Result Codes.
{ "Version": "6.2.0.5179", "TransmissionReference": "", "TransmissionResults": "", "Results": "GS07", "TotalRecords": 1, "Records": [ { … } ] }