---
title: "Discussion on \"A guide to Geolocation API\" | Hashnode"
description: "Discussion on \"A guide to Geolocation API\". The Geolocation API is used to get the geographical position of a user. Since this can compromise privacy, the position is not available unless the user approves it. \nThe Geolocation API is supported by all major browser. \n\n\nUsing the Geolocation API..."
url: "https://hashnode.com/posts/a-guide-to-geolocation-api/5fc201f82cae9c5b190b75dc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A guide to Geolocation API](https://rahulism.hashnode.dev/a-guide-to-geolocation-api?utm_source=hashnode&utm_medium=feed)

The Geolocation API is used to get the geographical position of a user. Since this can compromise privacy, the position is not available unless the user approves it. The Geolocation API is supported by all major browser. Using the Geolocation API...

Nov 28, 2020 · 5 min read · rahulism.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#geolocation](https://hashnode.com/tag/geolocation)
-   [#api](https://hashnode.com/tag/api)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Rahul](https://hashnode.com/@RAHULISM)

@RAHULISM · India.

  
[View profile](https://hashnode.com/@RAHULISM)

hustling

19, Hustler.

## Responses 1

Markdown supported · ⌘↵ to post

[Swastik Gowda L](https://hashnode.com/@Pro-Geek)

[Nov 29, 2020](https://hashnode.com/posts/a-guide-to-geolocation-api/5fc201f82cae9c5b190b75dc/comment/5fc3289641d31d6926fb79c9)

Nice article bro!! there is a spelling mistake in example 1 - console.log(`Longitude: ${position.coords.**logitude**}`); it supposed to be longitude not logitude

[Nov 29, 2020](https://hashnode.com/posts/a-guide-to-geolocation-api/5fc201f82cae9c5b190b75dc/comment/5fc3289641d31d6926fb79c9#reply-5fc329b941d31d6926fb79d7)

Thank you very much. Actually when i type i just not see the mistake and simply post it. Sorry.
