GPS search only accepts whole numbers for latitude and longitude #8597

Closed
opened 2025-12-29 20:38:39 +01:00 by adam · 1 comment
Owner

Originally created by @apm6 on GitHub (Sep 10, 2023).

NetBox version

v3.1.5

Python version

3.10

Steps to Reproduce

Search for a site with a specific latitude or longitude: '/dcim/sites?latitude=43.378470'

Expected Behavior

The API should return a site at that coordinate if there is one.

Observed Behavior

Response is a 400: {'latitude': ['Enter a whole number.']}

I uncovered this issue while trying to search for sites within a gps range. I found that "latitude__lte", "latitude__gte", etc only worked with whole numbers.

Originally created by @apm6 on GitHub (Sep 10, 2023). ### NetBox version v3.1.5 ### Python version 3.10 ### Steps to Reproduce Search for a site with a specific latitude or longitude: '/dcim/sites?latitude=43.378470' ### Expected Behavior The API should return a site at that coordinate if there is one. ### Observed Behavior Response is a 400: {'latitude': ['Enter a whole number.']} I uncovered this issue while trying to search for sites within a gps range. I found that "latitude__lte", "latitude__gte", etc only worked with whole numbers.
adam added the type: bug label 2025-12-29 20:38:39 +01:00
adam closed this issue 2025-12-29 20:38:39 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 11, 2023):

I cannot replicate this on NetBox v3.6.1.

v3.1.5

Your version of NetBox is very old. Please upgrade to the most recent stable release, as it appears the bug no longer exists.

@jeremystretch commented on GitHub (Sep 11, 2023): I cannot replicate this on NetBox v3.6.1. > v3.1.5 Your version of NetBox is _very_ old. Please upgrade to the most recent stable release, as it appears the bug no longer exists.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8597