[Guide] Get Current Location Without using Google Maps API & Location Sensor

Hi Koders

I have made blocks to get current location of user with a small script without using any location sensor (or) Google Maps API.

Hope everyone will like it.

URL to get location coordinates:
https://colapservices.co.in/location/geolocation.html

Components & Extensions Used:

• Custom Web Viewer Extension
• Component to Image Extension
• OCR Component (Kodular component)

You can view blocks below image.

Thanks
Nikhil Kumar

4 Likes

Thanks for sharing this guide.
Keep rocking :ok_hand:

1 Like

Well, that was an interesting guide @nikhilkumarbalijepalli , You are awesome… :heart:

I have tried with this limited blocks and found working… so you can avoid component to image, OCR and SpecialTool extension…

I just use js evaluation

here is my blocks

image

Thank you Nikhil, now my school attendance based on geolocation become very easy…

[Edit] : If you don’t want to use third party extension and want to use only kodular web viewer that is also possible… (tested found working but the alert msg is in English - really don’t know the reason for it)

Set blocks like this (PS. You should tick prompt premission as well as use location in designer properties, else it won’t work also no need to use access location permission block in screen init as it will ask in default by kodular)

3 Likes

hello, may i ask you something

my custom webview doesnt have .loadHavaScript and on Receive JavaScriptValue, what should i do
?

You can use sunny gupta extension