Get closest address from coordinates using OSM Nominatim










0















I am trying to do a reverse lookup to get the closest address to a set of coordinates using OSM Nominatim. I keep getting a way instead of a node though, which doesn't include a house number. Is there a way to force it to give the nearest node?



For example: https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.989911&lon=4.219650



I am pretty new to Nominatim, so sorry if this is a stupid question :)










share|improve this question






















  • What exactly is your problem here? Did you run Nominatim?

    – WiseStrawberry
    Nov 24 '18 at 15:10











  • I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

    – Rudy Gnodde
    Nov 26 '18 at 9:20















0















I am trying to do a reverse lookup to get the closest address to a set of coordinates using OSM Nominatim. I keep getting a way instead of a node though, which doesn't include a house number. Is there a way to force it to give the nearest node?



For example: https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.989911&lon=4.219650



I am pretty new to Nominatim, so sorry if this is a stupid question :)










share|improve this question






















  • What exactly is your problem here? Did you run Nominatim?

    – WiseStrawberry
    Nov 24 '18 at 15:10











  • I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

    – Rudy Gnodde
    Nov 26 '18 at 9:20













0












0








0








I am trying to do a reverse lookup to get the closest address to a set of coordinates using OSM Nominatim. I keep getting a way instead of a node though, which doesn't include a house number. Is there a way to force it to give the nearest node?



For example: https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.989911&lon=4.219650



I am pretty new to Nominatim, so sorry if this is a stupid question :)










share|improve this question














I am trying to do a reverse lookup to get the closest address to a set of coordinates using OSM Nominatim. I keep getting a way instead of a node though, which doesn't include a house number. Is there a way to force it to give the nearest node?



For example: https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.989911&lon=4.219650



I am pretty new to Nominatim, so sorry if this is a stupid question :)







openstreetmap reverse-geocoding nominatim






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 14:36









Rudy GnoddeRudy Gnodde

1,3171218




1,3171218












  • What exactly is your problem here? Did you run Nominatim?

    – WiseStrawberry
    Nov 24 '18 at 15:10











  • I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

    – Rudy Gnodde
    Nov 26 '18 at 9:20

















  • What exactly is your problem here? Did you run Nominatim?

    – WiseStrawberry
    Nov 24 '18 at 15:10











  • I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

    – Rudy Gnodde
    Nov 26 '18 at 9:20
















What exactly is your problem here? Did you run Nominatim?

– WiseStrawberry
Nov 24 '18 at 15:10





What exactly is your problem here? Did you run Nominatim?

– WiseStrawberry
Nov 24 '18 at 15:10













I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

– Rudy Gnodde
Nov 26 '18 at 9:20





I'm not running Nominatim myself, I'm using the service from nominatim.openstreetmap.org. The problem is that I want to find the nearest address to a location, but I'm not always getting a full address. In the example I gave I'm not getting a house number.

– Rudy Gnodde
Nov 26 '18 at 9:20












1 Answer
1






active

oldest

votes


















0














Alright, so whats happening is that you're not close to a building. It therefore shows you a cycleway and not a house_number



https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.990819&lon=4.220295



Is near where you want to be, and it does show you a house number because you are on a building.



Would you expect a field of cows to have a house numbers for example?






share|improve this answer























  • Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

    – Rudy Gnodde
    Nov 26 '18 at 10:57











  • Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

    – WiseStrawberry
    Nov 26 '18 at 19:17










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321796%2fget-closest-address-from-coordinates-using-osm-nominatim%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Alright, so whats happening is that you're not close to a building. It therefore shows you a cycleway and not a house_number



https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.990819&lon=4.220295



Is near where you want to be, and it does show you a house number because you are on a building.



Would you expect a field of cows to have a house numbers for example?






share|improve this answer























  • Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

    – Rudy Gnodde
    Nov 26 '18 at 10:57











  • Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

    – WiseStrawberry
    Nov 26 '18 at 19:17















0














Alright, so whats happening is that you're not close to a building. It therefore shows you a cycleway and not a house_number



https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.990819&lon=4.220295



Is near where you want to be, and it does show you a house number because you are on a building.



Would you expect a field of cows to have a house numbers for example?






share|improve this answer























  • Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

    – Rudy Gnodde
    Nov 26 '18 at 10:57











  • Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

    – WiseStrawberry
    Nov 26 '18 at 19:17













0












0








0







Alright, so whats happening is that you're not close to a building. It therefore shows you a cycleway and not a house_number



https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.990819&lon=4.220295



Is near where you want to be, and it does show you a house number because you are on a building.



Would you expect a field of cows to have a house numbers for example?






share|improve this answer













Alright, so whats happening is that you're not close to a building. It therefore shows you a cycleway and not a house_number



https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=51.990819&lon=4.220295



Is near where you want to be, and it does show you a house number because you are on a building.



Would you expect a field of cows to have a house numbers for example?







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 26 '18 at 10:48









WiseStrawberryWiseStrawberry

17519




17519












  • Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

    – Rudy Gnodde
    Nov 26 '18 at 10:57











  • Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

    – WiseStrawberry
    Nov 26 '18 at 19:17

















  • Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

    – Rudy Gnodde
    Nov 26 '18 at 10:57











  • Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

    – WiseStrawberry
    Nov 26 '18 at 19:17
















Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

– Rudy Gnodde
Nov 26 '18 at 10:57





Thanks, but I want to get the closest full address. The coordinates will be input by users, so I have no control over that.If it's a field of cows I still want to closest address, even if that's 10 kilometers away.

– Rudy Gnodde
Nov 26 '18 at 10:57













Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

– WiseStrawberry
Nov 26 '18 at 19:17





Youre better off implementing Notanim yourself then, this is the implementation they picked for you. There are more powerful alternatives, such as Azure reverse geocoding

– WiseStrawberry
Nov 26 '18 at 19:17



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321796%2fget-closest-address-from-coordinates-using-osm-nominatim%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

What does pagestruct do in Eviews?

Dutch intervention in Lombok and Karangasem

Channel Islands