wf
(Steve LaDuke)
October 9, 2017, 4:47am
1
This is the complete code that shows the issue:
GeoNearest["ZIPCode", GeoPosition[{40.11, -88.24}], {All, Quantity[5,"Miles"]}]
Error message:
A network operation for Geonearest timed out. Please try again later.
Tried 10/8/2017 9:40 PM PDT
I am using the WOLFRAM PROGRAMMING LAB with a URL that starts with https://lab.wolframcloud.com
seanc
(Sean Clarke)
October 9, 2017, 3:56pm
2
Which notebook is this from in the programming lab?
GeoNearest queries can be very complicated and take a massive amount of computation to do. This example looks difficult. Maybe there’s a better example?
franciscoj
(Francisco Rodríguez)
October 9, 2017, 4:26pm
3
If you need All within a given radius, you may also try GeoEntities, which is faster:
GeoEntities[GeoDisk[GeoPosition[{40.11, -88.24}], Quantity[5, "Miles"]], "ZIPCode"]
{Entity["ZIPCode", "61824"], Entity["ZIPCode", "61825"], Entity["ZIPCode", "61801"], Entity["ZIPCode", "61874"], Entity["ZIPCode", "61802"], Entity["ZIPCode", "61821"], Entity["ZIPCode", "61822"], Entity["ZIPCode", "61803"], Entity["ZIPCode", "61820"], Entity["ZIPCode", "61826"]}
wf
(Steve LaDuke)
October 9, 2017, 9:25pm
4
It is not a standard notebook in the Programming lab. I was trying to duplicate the functionality of Wolfram | Alpha.
wf
(Steve LaDuke)
October 9, 2017, 9:27pm
5
GeoEntities works for me.
Thank you.
Vitaliyk
(Vitaliy Kaurov)
October 16, 2017, 8:37am
6
Please see this post for a generalization of @Francisco ’s work around:
Simulating GeoNearest for ZIP codes around a geo path
http://community.wolfram.com/groups/-/m/t/1203815