Nominatim-API

Java library for reverse geocoding using Nominatim API nominatim.openstreetmap.org

License

License

Categories

Categories

MINA Net Networking
GroupId

GroupId

me.atlis
ArtifactId

ArtifactId

nominatim-api
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Nominatim-API
Java library for reverse geocoding using Nominatim API nominatim.openstreetmap.org
Project URL

Project URL

https://github.com/AtlisInc/Nominatim-API
Source Code Management

Source Code Management

http://github.com/AtlisInc/Nominatim-API

Download nominatim-api

How to add to project

<!-- https://jarcasting.com/artifacts/me.atlis/nominatim-api/ -->
<dependency>
    <groupId>me.atlis</groupId>
    <artifactId>nominatim-api</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.atlis/nominatim-api/
implementation 'me.atlis:nominatim-api:1.0.0'
// https://jarcasting.com/artifacts/me.atlis/nominatim-api/
implementation ("me.atlis:nominatim-api:1.0.0")
'me.atlis:nominatim-api:jar:1.0.0'
<dependency org="me.atlis" name="nominatim-api" rev="1.0.0">
  <artifact name="nominatim-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.atlis', module='nominatim-api', version='1.0.0')
)
libraryDependencies += "me.atlis" % "nominatim-api" % "1.0.0"
[me.atlis/nominatim-api "1.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
log4j : log4j jar RELEASE
com.google.code.gson : gson jar RELEASE
org.apache.commons : commons-lang3 jar RELEASE
me.atlis : atlis-location-base jar RELEASE

test (2)

Group / Artifact Type Version
junit : junit jar RELEASE
org.hamcrest : hamcrest-core jar RELEASE

Project Modules

There are no modules declared in this project.

Nominatim-API

Java library for reverse geocoding using Nominatim API nominatim.openstreetmap.org

Maven Dependency

<dependency>
  <groupId>me.atlis</groupId>
  <artifactId>nominatim-api</artifactId>
  <version>RELEASE</version>
</dependency>

Usage

You can use both geocoding and reverse geocoding using this library.

Reverse Geocoding

Address address = new Address();
address.setCity("New York");
MapPoint mapPoint = NominatimAPI.with(endpointUrl).getMapPointFromAddress(address, 5);

Geocoding

Double latitude = 40.7470;
Double longitude = -73.9860;
MapPoint mapPoint = new MapPoint().buildMapPoint(latitude, longitude);
Address address = NominatimAPI.with(endpointUrl).getAddressFromMapPoint(mapPoint);

NominatimAPI is thread safe singleton. String endpointUrl = "https://nominatim.openstreetmap.org/" for example.

Dependencies

License

LGPL. See LICENSE file for details.

me.atlis

Atlis

Discover better. Together.

Versions

Version
1.0.0