Fix solar resource download geocoding issues#1692
Merged
Merged
Conversation
If user enters a string that appears to be a lat/lon pair in decimal degrees, submit that directly to the NSRDB API instead of attempting to geocode it.
This shows lat/lon value that is submitted to NSRDB API to help with troubleshooting geocoding issues.
According to MapQuest API documentation: latLng "Returns the latitude/longitude for routing and is the nearest point on a road for the entrance." displayLatLng "A lat/lng pair that can be helpful when showing this address as a Point of Interest." https://developer.mapquest.com/documentation/geocoding-api/address/get
Collaborator
Author
sjanzou
requested changes
Feb 13, 2024
* Add support for all available international datasets from NSRDB, including TMYs where available (psm3-2-2-tmy, himawari-tmy, suny-india-tmy) * For locations with data available from multiple end points prioritize in order: psm3-2-2, himawari, msg-iodc, suny-india * Fix callback error when lat/lon for unavailable location submitted
Collaborator
Author
|
@sjanzou ea6c555 should resolve the callback issue and also adds support for downloading international data. Here's a CSV file with a list of location names and lat/lon pairs for places around the world and available NSRDB datasets and and LK script that creates it that might be helpful for testing: nsrdb-endpoints.zip |
sjanzou
approved these changes
Feb 18, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Pull Request Template
Description
NSRDB downloads from Solar Resource input page was submitting user input string to
geocode()function, assuming that the geocoding API parses the string to determine if it is a street address, location, name, or lat/lon pair. However,geocode()function sends input string to the MapQuest Geocode Address API, which requires a street address or location name as input: https://developer.mapquest.com/documentation/geocoding-api/address/get/. The private NREL developer geocoding API is a wrapper for the MapQuest API, and is not designed to take lat/lon as input.Items fixed:
geocode()function documentation to remove lat/lon as input option.Note related issues that will be fixed in separate pull requests:
Fixes #1526
Type of change
Please delete options that are not relevant.
Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.