Skip to content

AtlisInc/Nominatim-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Java library for reverse geocoding for Nominatim

Resources

License

LGPL-3.0 and 2 other licenses found

Licenses found

LGPL-3.0
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published

Languages