GeoTxt API documentation

URL:

http://geotxt.org/v2/api/geotxt.json

Type:

GET

Parameters:

m

Choose from two NER engines and multiple methods that yield 6 different choices: use (1) "gates" (without quotation marks) for Gate and
our improved ranking scheme, (2) "stanfords" for Stanford NER and our improved ranking scheme, or (3) "gate" or (4) "stanford"
for default GeoNames ranking scheme with each NER engine, or (5) "gateh" or (6) "stanfordh" to enable place name disambiguation.
PLEASE NOTE that "stanfords" and "gates" are recommended methods, while "gateh" and "stanfordh" enable context-based disambiguatioin.
Use "gate" and "stanford" only if other four methods do not produce desired results. These two latter methods are not recommended.

Return:

The API will return a GeoJSON FeatureCollection. The NER engines will extract three types of entities: locations,
organizations and persons. Locations will be Geo-located using GeoNames. Please refer to the
example output.

Example Request

http://geotxt.org/v2/api/geotxt.json?m=stanfords&q=Edwin Ernesto Rivera Gracias was in El Salvador and after voluntarily agreeing to return to the United States to face charges he was flown to Denver on Wednesday, according to the FBI. He surrendered to Salvadoran authorities and FBI agents on Tuesday, said FBI spokesman Dave Joly.