Empower your applications with geofind.me's comprehensive location services. This API documentation provides developers with detailed information on various endpoints that cater to reverse geocoding, place identification, exploring nearby locations, address listing, hydrographic data exploration, and GeoIP analysis.
- GeoIP Analysis - /geoip
- Reverse Geocoding - /reverse
- Place Identification - /place
- Explore Nearby Locations - /near_by
- Address Listing - /list
- Hydrographic Data Exploration - /hydro
To access the geofind.me API, authentication is required using the X-API-Key HTTP header. Follow the steps below to include your API key in the request:
Before making requests, obtain your unique API key by registering on the geofind.me.
Add the obtained API key to your HTTP requests using the X-API-Key header. For example:
curl -H "X-API-Key: YOUR_API_KEY" "https://api.geofind.me/geoip?ip=8.8.8.8"0: unspecified1: country2: region3: admin4: city5: locality
0: unspecified1: by distance2: by importance
Places returned from geocoding endpoints have summary field. This field stores feature indexes its related to.
country_codecountryadmin: administrative area: state or provincecity: city, county, etc...locality: village, neighborhood, sburb, etc...
The majority of geofind.me API endpoints return responses in GeoJSON format. Therefore, understanding GeoJSON is crucial.
GeoJSON is a format for encoding geographical data structures, primarily used for representing geographic features with their non-spatial attributes. It is based on the JavaScript Object Notation (JSON) standard and is commonly used in web mapping applications. GeoJSON is widely used for exchanging and representing geographic data due to its simplicity, human-readable format, and broad compatibility with web technologies.
In 2015, the Internet Engineering Task Force (IETF), in conjunction with the original specification authors, formed a GeoJSON WG to standardize GeoJSON. RFC 7946 was published in August 2016 and is the new standard specification of the GeoJSON format, replacing the 2008 GeoJSON specification.
- Point: Represents a single geographical point.
- LineString: Represents a sequence of connected points to create a line.
- Polygon: Represents an area defined by a closed loop of coordinates.
- MultiPoint, MultiLineString, MultiPolygon: Represent multiple points, lines, or polygons, respectively.
GeoJSON can contain a collection of features, each with its own set of properties and geometry.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [28.9771, 40.8420]
},
"properties": {
"name": "Golden Horn",
"category": "Bay"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[125.6, 10.1],
[125.8, 10.2],
[126.0, 10.3]
]
},
"properties": {
"name": "Route 1",
"category": "Path"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[125.6, 10.4],
[125.7, 10.5],
[125.8, 10.4],
[125.6, 10.4]
]
]
},
"properties": {
"name": "Area X",
"category": "Zone"
}
}
]
}Features can have additional attributes, referred to as properties, providing non-spatial information about the feature.
GeoJSON supports both "name" and "link" methods for specifying the coordinate reference system.